How to get the only new items from the queue using postman?

Hi team, how can I get only the new items from the queue and how can I clear the postponed date for those new queue items using postamn?


image
I’m getting the queue count at 25 because inside the queue total 25 items are there and few are processed but my requirement is to get those queue which are in new only
image

You don’t update the items with Postman. It would be much simpler for you to just create a simple automation that does this:

  • Get Transaction (gets next new item)
  • Add Queue Item (pass transactionItem.SpecificContent as the data for the new queue item)
  • Set Transaction success

@postwick thanks for the quick response, but I require to clear the postponed date for those queue items that are in new so that bot will process them asap instead waiting for the postponed date or time

The solution I gave you is the easiest way to do that. When you do the Add Queue Item, just don’t provide a postpone date.

@postwick , Items are already added and I can’t add those records again to the queue. I can clear the postponed date manually but I want to clear those using API so that it will easy for me to do it for a bulk amount of queue

You aren’t adding them again. You’re adding new items without the postponement, and marking the original items complete so they won’t be processed.

Anyway, if you want to do it with the API, then you’ll have to manually submit an API call for each queue item using the odata/QueueItems method.

Best way to do that is to create an automation that uses Get Queue Items to get all the New items, then For Each and Orchestrator HTTP Request to update each one.

1 Like

I have tried this but how can I write the json payload

Swagger shows you how to do it.

https://yourOrchestratorURL/swagger/index.html

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