Orchestrator API - Use Interval in request Filter

Hello all,

Currently using the orchestrator api in order to get logs from our robots for data visualisation purposes via the /odata/RobotLogs endpoint.

My wish is to add the Interval : ‘Last day’ to my request filter, however I can’t seem to find any documentation on how to do it.

My Filter currently is $filter=RobotName eq ‘Robot1’ and now I want to add something like Interval eq ‘Last day’ however this doesn’t help me and the request doesn’t work (I have a “an error occured” response)

Does anyone know the proper syntax to make this kind of requests ?


Filters need to use OData’s format, so you need to calculate when is “last day” and use its string representation. For example: $filter=TimeStamp ge 2020-08-27T02:00:20.043Z.

If you’re doing that with a workflow, you can use something like String.Format("{0}/odata/RobotLogs/?$filter=TimeStamp ge {1}", OrchestratorURL, Datetime.Now.AddDays(-1).ToString("yyyy-MM-ddTHH:mm:ssZ")).

1 Like

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