Can we update few fields in the specific content on the queue item that is already present.Using api’s?
Preferably orchestrator http request activity
You can’t directly update SpecificContent. The only way “to change” the data is to delete and re-add the queue item.
Hi @JITU99 ,
Kindly check the below steps if found for you:
Steps to Update SpecificContent of a Queue Item Using Orchestrator HTTP Request
- Get the Queue Item ID
You need the QueueItemId of the item you want to update. You can retrieve it using a GET request to:
GET /odata/QueueItems?$filter=Reference eq ‘YourReferenceValue’
Use the Orchestrator HTTP Request activity with:
Method: GET
RelativeEndpoint: /odata/QueueItems?$filter=Reference eq ‘YourReferenceValue’
Output: Deserialize the response to extract the Id.
2. Prepare the Updated SpecificContent
You must pass the entire SpecificContent object, not just the field you want to change. For example, if your current content is:
{
“ItemName”: “ABC”,
“Status”: “NA”
}
And you want to change Status to “Processed”, you must send:
{
“ItemName”: “ABC”,
“Status”: “Processed”
}
- Use PUT Request to Update the Queue Item
Use the Orchestrator HTTP Request activity again with:
Method: PUT
RelativeEndpoint: /odata/QueueItems()
Headers:
Content-Type: application/json
Authorization: Bearer <your_token> (if not already handled by the activity)
Body:
{
“ItemData”: {
“SpecificContent”: {
“ItemName”: “ABC”,
“Status”: “Processed”
},
“Reference”: “YourReferenceValue”
}
}
Replace “YourReferenceValue” and “ABC” with your actual values 1 2 3.
** Important Notes**
The API does not support partial updates to SpecificContent. You must send the entire object.
Make sure the Queue Item is in a state that allows updates (e.g., not already processed).
You can refer to your Orchestrator Swagger documentation at:
https://<your_orchestrator_url>/swagger/index.html
This ‘RelativeEndpoint: /odata/QueueItems?$filter=Reference eq ‘YourReferenceValue’’ is not clear for me can you help me with url where my queue name = Queue1 and reference value of queue item is ‘’reference_1”