How to convert dictionary to datatable in uipath

I have a dictionary as an output. that has to be converted to a datatable

1 Like
  1. Build data table with two columns key and value.
  2. For each loop for dictionary
  3. for each item Add data row ArrayRow{item.key, item.value} output of build data table
2 Likes

@Hema_Tangellapalli First Create a Datatable of Two Columns for Storing the Dictionary Values,Then You can use For Each Loop of the Dictionary and set the index of For Each
Inside For Each Use Add Data row Activity
In the Array Row Property Specify the value in this way : {yourDictionVariable.Keys(index),yourDictionVariable.Values(index)}
Set the Datatable Name

I guess this will work

2 Likes

@Pradeep_Shiv tried in this way. it worked. Thanks a lot

1 Like

i havent tried this. Thanks for the suggestion @supermanPunch

Great @Hema_Tangellapalli
close this thread by marking it as a solution
cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.