Up!
GetQueueItems will return an object that expose the Output property.
It is an activity in Studio. It returns a collection of queue items, however the Output property is not exposed.
Ya, Queue items in the studio cant access those Output property currently
Hey @quihan and @badita, can we update the value in any queue item present in the orchestrator? Is there any activity?
Has this feature been implemented? I cannot find the returnable object for the Output. I am able to access the SpecificContent, but am unable to find the feature to access the Output Data Object.
Hi @JMP, the current limitation is that we can’t access the output data directly from Queue item variable. The workaround will be by using Orchestrator API to get your queue items and access the output data.
https://orchestrator.uipath.com/v2018.2/reference#retrieving-specific-transactions
Cheers. Hope this helps.
Thanks for this. The documentation is slightly vague and I haven’t delved into Orchestrator API yet. Is there a way to get a specific item from a queue based on the Reference and the Queue Name? If so, what would that API request look like?
Hi @JMP, I agree with that. You could do it by using filter. Try looking at the OData Documentation to understand more about filters
Based on your case, you could use filter like QueueDefinationId eq ‘{ID}’ and Reference eq ‘{Ref}’ *Replace {ID} with your desired Queue ID and Ref with your content.
In calling Get Queue Items API, you can’t use Queue names directly as a filter instead you have to use Queue ID. In order to get the Queue ID, you have to use Get Queue Definitions API.
https://platform.uipath.com/swagger/ui/index#!/QueueDefinitions/QueueDefinitions_GetQueueDefinitions
Cheers. Hope this helps
It will be out in 18.3. So very soon.
Otherwise, yes, odata can be used?
- Our “Dipatcher/Worker” robots set a flag in “OutputData” with “SetTransactionStatus” activity Output. We are implementing a Statistics robot, which gets the all the elements from a queue and writes statistics based on that flag. It would be so nice to get OutputData in the GetQueueItems ouput as well.
Hi,
so what is your current approach to access the OutputData of a QueueItem?
hi @skrug,
If you are using UiPath studio that is later or 18.3, you could get the OutputData from a QueueItem by using QueueItem.output(“{field defined}”) .
Cheers,
Qui
Hi quihan,
great, thx a lot! That was very helpful!
Hi @quihan,
Could you give us more details about it? For instance, in which activity we can use your expression?
Thanks a lot. It is very useful
Hi @quihan , tried below thing but getting obejct ref null error, i can see queueitem output=null, though i can see output in orchestrator has value