How to write data to dictionary in uipath

collections

#1

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 ?


#2

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


#3

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


#4

Hi @Old_Musical_Hits,

You may also initialize the dictionary like this: