Http request - get queue items with EndProcessing within last 5 minutes

Hey everyone,

so I’m trying to get all queue items with EndProcessing within last e.g. 5 minutes. How do I write that using OData Notation?

image

I got the queue id etc. yet I don’t know how to write the filter correctly, see highlighted part (XYZ).

image

Anyone any ideas?

@muehlbauer157

try this

QueueDefinitionId eq 123 & EndProcessing ge 'Now.AddMinutes(-5).ToString("yyyy-MM-ddTHH:mm:ssZ")'

cheers

This works now, thanks! Yet somehow if I’m giving an exact date, it doesn’t work. Do you know why?

Info of qItem
image
OData String

Result

image

@muehlbauer157

please try using & instead of and

cheers

& - another system query option (e.g. orderby, etc.)
and - another condition (as e.g. in my filter)

I have to use “and”. With “&” it’s not working at all anymore.

This also only worked for “and” instead of “&”. Sorry for not mentioning.

1 Like

it works if I don’t use ’

image

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