Skip to main content
Question

Track bot deployment via API deployment ID

  • January 6, 2023
  • 4 replies
  • 471 views

AndyF
Forum|alt.badge.img+6

Using Control Room API and I have triggered a bot to run and receive a deploymentId, but I want to track the status of the job with the deployment.

 

Now in the swagger documentation I can see /v3/activity/execution/{id} but when I try this I receive

 

{

    "message": "Job execution not found"

}

 

Any advise before I badger Support?

4 replies

Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • January 6, 2023

@AndyF ,

You should have the View and Manage Scheduled Activity permission in order to see the jobs from Activity list.

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/control-room-api/cloud-job-execution.html

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/control-room-api/cloud-monitor-bot-progress-api.html

Seems obvious, but check if the execution id is correct.

In addition, in previous A360 versions  this API was the endopint  /v2/activity/list . I guess you are in a Cloud version.

HTH

Regards


AndyF
Forum|alt.badge.img+6
  • Author
  • Navigator | Tier 3
  • January 6, 2023

@Raul Jaimes I’ll double check the permissions.


Is there any other way to verify the deploymentID other then what is returned in the JSON?  Is the deploymentID a valid column in the Control Room GUI?

 

Yup We are in cloud, but will check against v2 in the Swagger documentation​


Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • January 6, 2023

 

@AndyF ,

Great. Check the id after endpoint InProgress  if possible. This is the value of your bot  execution.

 

 

HTH

Regards


rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • January 9, 2023

@AndyF  add application user as admin in control room to retrieve api results.