Transaction ID

Hi All,

I wanted to know how do we get Transaction ID of queue item and why it is used?

Thanks in advance

Hie @Nisha_K21 transaction id is used to track the process …specially while we are working with REFramework it help us to get the details to which transaction is process.
To access the Transaction ID, use the Get Transaction Item activity in your workflow. This activity retrieves a transaction item from a queue and provides you with its details, including the Transaction ID.
cheers Happy Automation.

@singh_sumit I can see in the get Transaction Item now.tostring is assigned to transaction ID so that means are we getting current date time for transaction I’d?

@Nisha_K21 No, using ToString() on GetTransactionItem does not necessarily mean you’re getting the current date and time for the transaction ID. It depends on what GetTransactionItem returns. If GetTransactionItem returns a date-time object and you call ToString() on it, then you would get the current date and time in string format. However, if GetTransactionItem returns something else, ToString() will convert that object to its string representation, which might not be a date-time.
Hope you get the point.
cheers

1 Like

Hi @Nisha_K21

If you want Transaction ID use

TransactionItem.Itemkey.ToString

Regards,

1 Like

Hi @Nisha_K21

Transaction ID is a unique identifier used to track and manage individual transactions within a process

TransactionItem.Itemkey.ToString

1 Like

@Nisha_K21,

You can get the Transaction Id with this.

Transactionitem.ItemKey.ToString

The image shows a workflow sequence in UiPath that retrieves a transaction item from an orchestrator queue named "TestQueue" in the folder "POC" and logs the transaction item's key. (Captioned by AI)

The image displays the output of a debugging session, indicating that a string operations execution was started and completed successfully within one second, along with a transaction ID. (Captioned by AI)

Why it is used?
You can use this to get specific transaction item through API

Thanks,
Ashok :slight_smile:

2 Likes

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