Skip to main content

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

@imahamzanasir 

You can get these details from endpoints

Device ID and device name

id bot

 

See run id in the historical section :

 

HTH

Regards


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??. Thank you for the answer


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 ,

  • 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?


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


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


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


Reply