rmorgan
(Rmorgan)
1
How do I apply the below filter using the http request activity
I know it has to do with the URL but even if I manually put in the below then it still returns lots of data and not even the latest jobs
https://cloud.uipath.com/xxxx/xxxx/orchestrator_/odata/Jobs?mandatoryPermissions=Jobs.View&atLeastOnePermissions=Jobs.View&%24filter=CreationTime%20gt%202023-12-04T00%3A00%3A00Z
If you need to fetch jobs information with a robot, you have the “Get Jobs” activity.
As for the Swagger, did you try if you get results if you “Try it out” → “Execute”?
rmorgan
(Rmorgan)
3
yes thats where it works, but I want to use it in an http request. Plus get jobs only fetches 100 at a time
ppr
(Peter Preuss)
4
we would recommend to use the Orchestrator HTTP Request Activity
otherwise add the filter… to the url (when using HTTP Request)
in such case we send 1 call for asking the count and do later the paging with top and skip
rmorgan
(Rmorgan)
5
So I have solder this now. Next question is how do I have 2 filters applied?
You can use “and” or “or” operators. See here for more info: URI Conventions (OData Version 2.0) · OData - the Best Way to REST (especially section 4.5).
Hi @rmorgan
When you execute from swagger you will get the URL with which it was executed below.
Try copying and pasting it in the orchestrator http activity and it will work.
You can use multiple filters in the same swagger by using odata query format.
Hope it helps!
Cheers
system
(system)
Closed
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.