Storing all specific data of queue item into String

Hi All,

How Can we Store the all Specific Data of Queue item into a single variable.?

: for Example:

In the below Screenshot,which having all data like SNO,Country,Bank Name,Report Name etc.,

Capture

I can store all this in different variable,but want to store all this in a single variable with out mentioning names like SNO,Bank Name .

Can we Store directly as json,if so please guide me how to do it?

we can grab the specificContent Dictionary

Can you explain me more,how can it be done

@yashashwini2322,

Use assign activity
To = dictionary variable
Value = Newtonsoft.Json.JsonConvert.DeserializeObject(Of Dictionary(Of String, Object))(queueItem.SpecificContent)

Thanks,
Ashok :slight_smile:

What will be the variable type?

We assume that you are dealing with a workqueue item as a variable of DataType QueueItem, right?

So we can access the specificContent dictionary
grafik

When data is present as other formats / datatype, then let us know more about the case

Dictionary(Of String, Object)

Capture
It’s throwing an error.

@yashashwini2322,

Install package UiPath.WebAPI.Activities
image

If still gives error after package install, try to import namespace - Newtonsoft.Json

image

Thanks,
Ashok :slight_smile:

as we mentioned:

so you could tell us more about the case and the modellings

With:
grafik

there is a hint of a collection of UiElements. SpecificiContent is a property of an UiElement but not of its instances within a set / collection

I stored the data into Dictionary variable but I want to store the Dictionary(of String,object) into datatable using add data row,but it is not working.

Lets do it step by step:

  • what is exact input
  • what is needed
  • what is the aimed / tentative output

As far we had a series of feedback like:

And it should also be cleared, if all SpecficContent Structures are the same or not