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.,
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?
ppr
(Peter Preuss)
March 18, 2024, 11:44am
2
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
What will be the variable type?
ppr
(Peter Preuss)
March 18, 2024, 12:01pm
6
We assume that you are dealing with a workqueue item as a variable of DataType QueueItem, right?
So we can access the specificContent dictionary
When data is present as other formats / datatype, then let us know more about the case
Dictionary(Of String, Object)
@yashashwini2322 ,
Install package UiPath.WebAPI.Activities
If still gives error after package install, try to import namespace - Newtonsoft.Json
Thanks,
Ashok
ppr
(Peter Preuss)
March 18, 2024, 2:33pm
10
as we mentioned:
so you could tell us more about the case and the modellings
With:
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.
ppr
(Peter Preuss)
March 18, 2024, 3:02pm
12
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:
yashashwini2322:
It’s throwing an error.
And it should also be cleared, if all SpecficContent Structures are the same or not