Question

Track bot deployment via API deployment ID

  • 6 January 2023
  • 4 replies
  • 31 views

Badge +3

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

Userlevel 4
Badge +8

@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

Badge +3

@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​

Userlevel 4
Badge +8

 

@AndyF ,

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

 

 

HTH

Regards

Userlevel 4
Badge +9

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

Reply