How to convert a Dictionary (Of String, String) into a CSV?

I have a dictionary of String, String and I want to save it as a CSV. I don’t want to loop through it with the For each activity and read each row. I need something more straightforward.

Any suggestions?

@Joel_Medeiros

can you try this once

Newtonsoft.Json.Linq.JArray.FromObject({dict_values}).ToObject(of system.data.DataTable)

below that use write csv activity

2 Likes

Hi,

Can you try the following sample?

dt = dict.Select(Function(kv) dt.LoadDataRow({kv.Key,kv.Value},False)).CopyToDataTable()

Sample20231127-1aL.zip (2.9 KB)

Regards,

2 Likes