Question

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

  • 12 April 2023
  • 8 replies
  • 126 views

Badge +1

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


8 replies

Userlevel 5
Badge +9

@imahamzanasir 

You can get these details from endpoints

Device ID and device name

id bot

 

See run id in the historical section :

 

HTH

Regards

Userlevel 2
Badge +8

Hi @imahamzanasir ,

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

 

Badge +1

@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

Badge +1

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

 

Userlevel 2
Badge +8

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?

Badge +3

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

Badge +1

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

Badge +3

You can find it here https://baobab-sbx.cloud-4.automationanywhere.digital/swagger/

Reply