How to get robot data from orchestrator queue with using get queue items activity output

how to get robot name from orchestrator queue with using get queue items activity output

I need to know which transaction item is processes by which robot

Is their any possibility by not using apis

@ppr @mukeshkala @Yoichi

thanks in advance

Hi @srujana13a5

No, there is no way using Get Queue Items. Here, is the explanation from Forum Chatbot:

Forum_Chatbot generated Answer:

In UiPath the default output of the Get Queue Items activity does not include information about which robot processed a given transaction item. The API response for a QueueItem normally omits robot details unless you explicitly expand that related entity.

For example, when calling the Orchestrator API endpoint (for instance, “/odata/QueueItems”), if you append the OData query parameter “?$expand=Robot” then the returned JSON will contain the Robot entity which includes its name. As one forum member explained:

“I got it… I have to expand Robot in the query.”

This means that if you want to know which robot processed a transaction, you cannot rely on the out-of-the-box Get Queue Items activity output. Instead, you must either:
• Use the Orchestrator API directly with the $expand=Robot parameter, or
• Implement a custom solution (such as adding the robot name to a specific field during processing).

So, to answer your question: there isn’t a built‐in method within the Get Queue Items activity to retrieve the robot name without leveraging an API call or a similar workaround.

If this solves your query, do mark it as a solution.
Happy Automation :star_struck:

Hi @srujana13a5

There isn’t a direct way to get the robot name from the queue item, but you can still capture useful info like the machine name and user name of the robot that’s processing the transaction.
During processing, you can simply add a log message like this:

System.Environment.UserName
Environment.MachineName

This way, you’ll know exactly which robot is handling the transaction at runtime.

If you want to store this info in the queue for later reference , you can add a field (e.g., “RobotName”) when creating the queue item and then during processing, update that field with the actual robot name or machine name.

Item.SpecificContent(“RobotName”) = Environment.MachineName

Hope this helps :slight_smile:

1 Like

@srujana13a5

if not api then while processing you can add it to analytics or output in the queue item and that can be retreived

cheers

Hi @srujana13a5

No directly. Get Queue Items does not return robot name. Only way without API is to use Set Transaction Status, in Output property add key RobotName with value Environment.MachineName or OrchestratorFolderPath. Then later get it using Get Queue Items.

Happy Automation