Skip to main content
Cadet | Tier 2
April 12, 2023
Solved

Bot Details: How to get bot id, machine id etc

  • April 12, 2023
  • 8 replies
  • 1671 views

How to get bot id, machine id, run id, bot name, machine name in automation anywhere. I need to add these details in logs.

Thanks

Best answer by Raul Jaimes

@imahamzanasir 

You can get these details from endpoints

Device ID and device name

id bot

 

See run id in the historical section :

 

HTH

Regards

8 replies

Raul Jaimes
Navigator | Tier 3
April 12, 2023

@imahamzanasir 

You can get these details from endpoints

Device ID and device name

id bot

 

See run id in the historical section :

 

HTH

Regards

Zaid Chougle
Navigator | Tier 3
Navigator | Tier 3
April 12, 2023

Hi @imahamzanasir ,

  • Username extraction :  Using Package → System → Action→ Get Environment Variables
  • BOT Name extraction : Under Variables → System → AATaskName

 

Lets Automate !
Cadet | Tier 2
April 12, 2023

@imahamzanasir

You can get these details from endpoints

Device ID and device name

id bot

 

See run id in the historical section :

 

HTH

Regards

How to assign these values in a variable??. Thank you for the answer

Cadet | Tier 2
April 12, 2023

Hi @imahamzanasir ,

  • Username extraction :  Using Package → System → Action→ Get Environment Variables
  • BOT Name extraction : Under Variables → System → AATaskName

 

@imahamzanasir

You can get these details from endpoints

Device ID and device name

id bot

 

See run id in the historical section :

 

HTH

Regards

How to assign these values in a variable in a code??. Thank you for the answer

 

Zaid Chougle
Navigator | Tier 3
Navigator | Tier 3
April 13, 2023

Hi @imahamzanasir ,

  • Username extraction :  Using Package → System → Action→ Get Environment Variables
  • BOT Name extraction : Under Variables → System → AATaskName

 

@imahamzanasir

You can get these details from endpoints

Device ID and device name

id bot

 

See run id in the historical section :

 

HTH

Regards

How to assign these values in a variable in a code??. Thank you for the answer

 

Hi @imahamzanasir ,

whose response are you talking about?

Lets Automate !
Navigator | Tier 3
April 13, 2023

You can use Control, room api to get this information and parse the json result into variables

Cadet | Tier 2
April 13, 2023

You can use Control, room api to get this information and parse the json result into variables

I cant find that api endpoint in control room api that returns bot and device details. Can you please tell where to find that specific api

Navigator | Tier 3
April 14, 2023