I’m trying to fetch information on running and failed jobs with a robot so we could use it to automaticaly inform our users.
I can fetch the information using API calls but I noticed there is an activity in UiPath that seems to do the same thing but looks easier to use and maintain. But when using the “get jobs” activity I get the following error:
I can use the activities for assets and for queues so my connection to orchestrator is fine.
When using the the API I use the UiPath.Web.Activities.HttpClient activity with as url:
“hosturl/odata/Jobs?$filter=State eq ‘Running’” and a bearer (created with a request with my credentials) in the header. This works so I assume I do have the permissions to query the jobs.
Has anyone an idea of why I can’t use the get jobs activity?
Does the same issue occur if you try with a different folder? Is the Default folder a Modern or Classic folder? And lastly what’s the version of UiPath.system.activities in your robot project?
I was only asking because I have a version that allows some input
Is your Studio/Assistant connected to Orchestrator? When I click on “Orchestrator Folder Path” on the screenshot that I sent you, I can see a list of all the folders that belong to my OC. By this, I can know for sure that the connection is right. I’m using System Activities 22.10.05. Maybe you do the same just to make sure on that side