Anyone worked on postpone queue item using API. I have ID of the transaction Item, but while trying to use update transactionItem its failing.
Can anyone helpwith end point of postpone queue item and request body?
Anyone worked on postpone queue item using API. I have ID of the transaction Item, but while trying to use update transactionItem its failing.
Can anyone helpwith end point of postpone queue item and request body?
Try like this:
{
"itemId": "queue_item_id",
"SpecificContent": {
// Specific data you want to update
},
"Postpone": "2025-01-31T23:59:59Z" // New postpone time
}
this is ehat you need to use…specific content you have to send else it will become empty
{
"Name": "ABC",
"SpecificContent": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"DeferDate": "2025-01-31T08:02:16.249Z"
}
Hope this helps
cheers
Hi, I just want to update the postpone time alone and dont want to edit other details. can you also share the end point for this?
URL- odata/QueueItems(900339341) - ID from previous get queue item request
{
“itemId”: “426a56ad-d4ca-bd6c-84d1-2a0109b2f650”, - “Reference ID”
“SpecificContent”: {
“Name”: “test_IND”,
},
“Postpone”: “2025-01-31T23:59:59Z” // New postpone time
}
but getting queueItemDataDto must not be null error
queueItemDataDto is mandatory so just deserialize the queue item data like SpecificContent from your previous request from which you are getting ID and pass it to your postpone request.
This is the response from the previous request.
{
“@odata.context”: “UiPath”,
“value”: [
{
“OrganizationUnitFullyQualifiedName”: “Shared_TEST”,
“AncestorUniqueKey”: null,
“ManualAncestorUniqueKey”: null,
“CreatorJobKey”: null,
“ExecutorJobKey”: null,
“RobotId”: null,
“ParentOperationId”: null,
“OperationId”: null,
“QueueDefinitionId”: 123456,
“Encrypted”: false,
“OutputData”: null,
“AnalyticsData”: null,
“Status”: “New”,
“ReviewStatus”: “None”,
“ReviewerUserId”: null,
“Key”: “test-key-1234-5678-9101-abcdef”,
“Reference”: “test-ref-1234-5678-9101-abcdef”,
“ProcessingExceptionType”: null,
“DueDate”: “2025-01-30T21:09:36Z”,
“RiskSlaDate”: null,
“Priority”: “Normal”,
“DeferDate”: “2025-01-30T21:09:36Z”,
“StartProcessing”: null,
“EndProcessing”: null,
“SecondsInPreviousAttempts”: 0,
“AncestorId”: null,
“RetryNumber”: 0,
“ManualAncestorId”: null,
“ManualRetryNumber”: 0,
“UniqueKey”: “test-key-1234-5678-9101-abcdef”,
“HasVideoRecorded”: false,
“SpecificData”: “{"DynamicProperties":{"Name":"Test_Automation","EventID":"test-event-1234"}}”,
“CreationTime”: “2025-01-30T21:09:36.847Z”,
“Progress”: null,
“RowVersion”: “AAAAATESTTEST=”,
“OrganizationUnitId”: 987654,
“Id”: 900000000,
“ProcessingException”: null,
“SpecificContent”: {
“Name”: “Test_Automation”,
“EventID”: “test-event-1234”
},
“Output”: null,
“Analytics”: null
}
]
}
{
“itemId”: “test-item-id-1234-5678-9101-abcdef”,
“SpecificContent”: {
“Name”: “Test_Automation”,
“EventID”: “test-event-id-1234”
},
“Postpone”: “2025-01-31T23:59:59Z”
}
Still getting queueItemDataDto must not be null error
{
“Name”: “test-Queue”,
“SpecificContent”: {
“Name”: “Test_Automation”,
“EventID”: “test-event-id-1234”
},
“Postpone”: “2025-01-31T23:59:59Z”
}
Tried this method too @ashokkarale @Anil_G
its not postpone its deferdate please check the payload properly
if it does not work it would be great if you give the exception we can guide you…also I did try the same payload …can check screenshot above so that should be working as expected unless there is some different details that you would have tried
cheers