Get OutputData from Queue Item

i_planned
orchestrator
r_18_4

#1

It is good to have a get Output Data from Queue Item for reporting.


#2

Up! :+1:


#3

GetQueueItems will return an object that expose the Output property.


#4

Hi @badita, the GetQueueItems referring to Orchestrator API or Activity in studio?


#5

It is an activity in Studio. It returns a collection of queue items, however the Output property is not exposed.


#6

Ya, Queue items in the studio cant access those Output property currently :tired_face:


#7

Hey @quihan and @badita, can we update the value in any queue item present in the orchestrator? Is there any activity?


#8

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.


#9

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.:slight_smile:


#11

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?


#12

Hi @JMP, I agree with that. You could do it by using filter. Try looking at the OData Documentation to understand more about filters

http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_Toc453752283

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 :slight_smile:


#13

It will be out in 18.3. So very soon.
Otherwise, yes, odata can be used?


#14

Good to know :slight_smile: Cheers @badita