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
thanks in advance
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
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 ![]()
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 ![]()
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