HTTP Request / Swagger Filter

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”?

yes thats where it works, but I want to use it in an http request. Plus get jobs only fetches 100 at a time

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

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

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.