I am trying to use Orchestrator HTTP Request to update the Reference of a Queue Item. I am calling odata/Queueitems(key) and passing this as the payload:
The success is happening when I do it with Swagger (although the reference isn’t updated). However when I try the same API call with Orchestrator HTTP Request I get status 404.
We cannot edit/change the reference of the queue item once created either manually or using API.
It can only be done when creating or cloning the queue item.
This is all so ridiculous, we’ve been asking for these capabilities for years.
I need to do the following:
Get Transaction
Get Queue Items (New)
For Each to get just the ones where two SpecificContent values match
Mark all Queue Items as In Progress
Because we can’t directly edit the Status from New to In Progress, I thought I’d update the Reference to the Id as the original Transaction, then use Get Transaction and specify that Reference to mark it as In Progress.
But now I can’t even edit the Reference to be able to use Get Transaction.
This complete inability to manage Queue Items with activities or the API is maddening.
If we manage to mark all related transactions as In Progress, what should be the next step? Should we process only the current transaction and then mark the remaining related transactions as completed, or is there a recommended approach to handle them individually?
I’ve tested and confirm your findings that the queue item indeed doesn’t update the reference with the PUT request, so the documentation in the swagger page must be wrong.
I’d question your overall architecture to need this approach, but thats a fairly moot point at this stage.
The API to set a queue item from New to In Progress is not documented in Swagger if I recall correctly, but you can do it from Studio.
Without unpacking the underlying code for the activity, you can intercept the API call when the normal activity runs to see what it is, then replicate that with the Orchestrator HTTP request, doing so I believe you can set it using the key items ID or key, not the reference.