Skip to main content
Solved

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

  • Apr 12, 2023 2:47 AM UTC
  • 8 replies
  • 1735 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

View original

8 replies

Raul Jaimes
Forum|alt.badge.img
  • Navigator | Tier 3
  • Answer
  • Apr 12, 2023 3:19 AM UTC

@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+9
  • Navigator | Tier 3
  • Apr 12, 2023 4:58 AM UTC

Hi @imahamzanasir ,

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

 


  • Author
  • Cadet | Tier 2
  • Apr 12, 2023 8:59 AM UTC

@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


  • Author
  • Cadet | Tier 2
  • Apr 12, 2023 12:25 PM UTC

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+9
  • Navigator | Tier 3
  • Apr 13, 2023 2:40 AM UTC

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?


  • Navigator | Tier 3
  • Apr 13, 2023 9:45 AM UTC

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


  • Author
  • Cadet | Tier 2
  • Apr 13, 2023 4:58 PM UTC

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
  • Apr 14, 2023 9:22 AM UTC