I want to pick only one queue item from the list of Queue Items

Hi,
I have used Get Queue Items activity with a Reference. So, in the outcome I am expecting only one queue item matching it. I am referring that 1 queue item using below expression to take out some data from it in JSON, but it is throwing error.

DataTableVar = Newtonsoft.Json.JsonConvert.DeserializeObject(Of DataTable)(ListofQueueItems(0).SpecificContent(“Details”).ToString)

Please help what mistake I am doing?

it would be better to tell us also the error

However you can analyse and prototype within the immediate panel
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

Check that there is a return: ListofQueueItems.Count
check the specific content dict keys

ListofQueueItems(0).SpecificContent.ContainsKey(“Details”)

check the JSON string:
ListofQueueItems(0).SpecificContent(“Details”).ToString

and finaly theck the conversion

Use Get Transaction instead of Get Queue Items.

Hi
Try this

DataTableVar = Newtonsoft.Json.JsonConvert.DeserializeObject(Of DataTable)(ListofQueueItems.ElementAt(0).SpecificContent(“Details”).ToString)

Thanks for Reply.
My bad, I was using wrong name of the column. It worked after putting correct value.

Thanks for reply, but Get Transaction puts the item In Progress state, which I do not want.

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