How to convert IEnuberable into Datatable

Hi,

I have uploaded Datatable in queue by converting it into JSON.

Now, i want to retrieve it as datatable. I have used “get Queue Item” Activity and got it as IEnumerble variable. Then, What i need to do?

Hi @Salman_Faries

Check out this thread. It might help you.

Regards,

Hi @Salman_Faries
Check the below thread,it might help you

Assuming your queueitem variable is named “queueItem”, you can deserialize it like this:

dt = Newtonsoft.Json.JsonConvert.DeserializeObject(Of DataTable)(queueItem.SpecificContent("yourKey").ToString)

Hey,

Newtonsoft.Json.Linq.JArray.FromObject(YourGetQueueItemsOut.Select(Function (x) x.SpecificContent).toArray).toObject(Of DataTable)

  1. i understand this, Where i need to put my queue item here?
  2. Also i need to add any namespace?

please tell.

@Salman_Faries

Check out this thread. This will help you

Regards

Hi,

By doing for each the only way to do this?

1 Like