I have a scenario and i struck in some part I’m unable to get it. I want to get my queues data as report.
Endpoint: /odata/QueueItems
I tried above code it is giving entire queues data
I want only perticular data like i need to specify my Orchestrator Folder and Queue name and the perticular date. How we get this. I have tried few but nothing is working. Can anyone help me with the right filter condition.
/odata/QueueItems?$filter=QueueDefinition/Name eq 'YourQueueName' and EndTime ge DateTime'2024-02-01T00:00:00' and EndTime lt DateTime'2024-02-02T00:00:00'&$orderby=EndTime desc
If you want to pass the datetime string variable then try this:
/odata/QueueItems?$filter=QueueDefinition/Name eq 'YourQueueName' and EndTime ge DateTime'" + FilterStartDate + "'&$orderby=EndTime desc
Orchestrator API activity:
Api endpoint = “/odata/QueueItems?$filter=QueueDefinition/Name eq ‘YourQueueName’ and EndTime ge DateTime’” + FormattedDateTime + “'&$orderby=EndTime desc”
Strict API → If enabled, certain API fields become non-filterable and/or non-sortable, thus helping prevent performance issues. You can see a list of these fields in the dedicated page.
This setting is enabled by default for new tenants, but existing tenants need to be opted in manually.
Keeping this option enabled at all times is a recommended best practice in API integrations.
This method is particularly useful when you are constructing URLs dynamically and want to ensure that the data you include in the URL is properly encoded to adhere to URI specifications.
Uri.EscapeDataString("/odata/QueueItems?$filter=QueueDefinition/Name eq 'YourQueueName' and EndTime ge DateTime'" + FilterStartDate + "'&$orderby=EndTime desc")
First check that request in Postman. It may be that the fields are incorrect, or the Dates are not in the correct format, or indeed some fields are not filterable.
Check if the GET URL is the same in Studio as in Postman. It may be that some spaces or quotes are incorrect.