I’m trying to get the latest ‘N’ number of QueueItems from Queue using Orchestrator API.
What should be the $filter query here?
I’m trying with /odata/QueueItems endpoint. Any other approaches are also welcome!
Thanks,
Ashok ![]()
I’m trying to get the latest ‘N’ number of QueueItems from Queue using Orchestrator API.
What should be the $filter query here?
I’m trying with /odata/QueueItems endpoint. Any other approaches are also welcome!
Thanks,
Ashok ![]()
you would filter on the status and order it on a date property (created, last processed… what you will define that fits to your case)
Can you suggest sample filter query/string @ppr?
Thanks,
Ashok ![]()
give a try at
And extend it when filtering on a queue is to add as well
QueueDefinitionId eq 123456 And (Status in ('New', 'InProgress') eq false)
QueueDefinitioId you can retrieve also from api when not known
Alternate:
QueueDefinitionId eq 123456 And Not Status in ('New', 'InProgress')
@ppr,
Thanks a lot! It’s giving me non New and In Progress queue items. Any suggestion how can I get latest n only not the oldest?
Also, where is documentation for these filter queries?
Thanks,
Ashok ![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.