How to write data to dictionary in uipath

Created a new variable in Uipath as below
defaultValuesArray = newe Dictionary(Of String, String)
but I’m unable to write data into this dictionary. I’ve add 33 values into variable. Could some one please help me to solve this issue ?

Hi @Old_Musical_Hits,

Step 1
There is an activity Add To Dictionary, choose that activity.

Step 2
Then go to properties, enter your dictionary name, key & value

5 Likes

Thanks for the solution. I’ve to install “Microsoft.Activities.Extensions” first to get this option.

4 Likes

Hi @Old_Musical_Hits,

You may also initialize the dictionary like this:

7 Likes