How can we write csv file to dictionary

Hi All,
I am very new to UI path. I want to convert CSV format to JSON format and send it to the elastic search.So I thought to convert CSV format to the dictionary and from there using elastic search.I want to send the data. Could anyone suggest on, how can write CSV file to a dictionary?

Read CSV into a data table and then loop thru data table to add pairs to a dictionary.

https://docs.uipath.com/activities/docs/read-csv-file

ForEach row in DT
{
      //add to dictionary
}

Refer RE-Framework Init All Settings.XAML for how to add to a dictionary.

Regards,
Karthik Byggari

2 Likes