Skip to main content
Answer

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

  • April 12, 2023
  • 8 replies
  • 1495 views

Forum|alt.badge.img+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

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
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • Answer
  • 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
Forum|alt.badge.img+17
  • Navigator | Tier 3
  • April 12, 2023

Hi @imahamzanasir ,

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

 


Forum|alt.badge.img+1
  • Author
  • 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


Forum|alt.badge.img+1
  • Author
  • 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
Forum|alt.badge.img+17
  • 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?


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • April 13, 2023

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


Forum|alt.badge.img+1
  • Author
  • 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


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • April 14, 2023