Hi All
I have used get Queue item activity in UiPath and i got the output ienumerable values, how do i convert into datatable without loop?
Can anyone suggest me how do i do that?
Hi All
I have used get Queue item activity in UiPath and i got the output ienumerable values, how do i convert into datatable without loop?
Can anyone suggest me how do i do that?
With loop
With out loop you can try this way
YourIEnumerableVariable.CopyToDataTable()
Hi @divya.17290 ,
Could you maybe check with the below post :
He suggest the querry " JArray.FromObject(YourGetQueueItemsOut.Select(Function (x) x.SpecificContent).toArray).toObject(Of DataTable)" but i got error for JArray not declared
Can you try this
Assign Activity:
dtData =
JArray.FromObject(YourGetQueueItemsOut.Select(Function (x) x.SpecificContent).toArray).toObject(Of DataTable)
How do i declare JArray?
Modifying it a bit to add the namespace, could you check the below expression :
Newtonsoft.Json.Linq.JArray.FromObject(YourGetQueueItemsOut.Select(Function (x) x.SpecificContent).toArray).toObject(Of DataTable)
Could have also performed a Import from the Import Panels which should able us to use the Expression suggested earlier :
I can extract the queue items and write into the excel.Thanks!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.