How to update the queue items after adding the items to it

Hi team,

I am adding

Email name
Email subject
log id
exception id …in QUEUE 1 …where log id and exception id are not getting populated after adding.

Then , I am picking each item from QUEUE 1 , After processing each item from QUEUE 1 , I want to update the log id and exception id fields of that item in QUEUE 1. How can I update these fields again ?
Is there any update which I can make in the Set Transaction Status activity?

Regards,
Gokul

As I understand, you need to update the SpecificContent in your queue item.

Your requirement can be achieved via Rest API calls to https://ORCHESTRATOR_HOSTNAME/swagger/index.html#/QueueItems/QueueItems_PutById

Or via an SQL update statement in [dbo].[QueueItems] table for column SpecificData.

Important: UiPath strongly does not encourage to use of SQL update manipulations as you may break some functionalities in case you don’t know exactly what you are supposing to do.

Before:

Update the queue item SpecificContent

Method: PUT
URL: https://ORCHESTRATOR_HOSTNAME /odata/QueueItems(QUEUE_ITEM_ID )
Authorization: Bearer token
Headers:
X-UIPATH-OrganizationUnitId: TENANT_ID
Accept: application/json

Body of type JSON:

Example:

{
        "Priority": "Low",
		"Name": "Queue_1",
	"SpecificContent": {
		"DocumentType": "Invoice repair",
		"Category": "Semi Trucks",
		"RepairStatus": "Repaired Paid",
		"EstimateUSD": 2500,
		"CreateDate": "2022/8/31",
		"LastUpdateDate": "2022/8/31",
		"Comments": "Changed Oil and brake disks"
	},
	"Reference": "Invoice_repair_1",
	"Progress":null
}

After:

Reference:

https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/Update-Queue-Item-Specific-Data?lang=en_US