Dictionary assign

Hi guys,

I have the following code
Untitled
Just wondering how does assign work in uipath?
I created a new dictionary of string, int
On assigned I gave it a key with no value. How does the “Assign” function assign it to the value?
Is there a way to show all the elements in the dictionary as a drop-down menu in the input dialog?

Thank you so much

@NewRPADev ,

Welcome to UiPath Community!

You check this link to know more about the Assign activity

For using the dictionary
use this code in the “input Options argument” of input dialog activity.

String.Join(";", yourDictionary.[Select](Function(x) x.Key & "=" + x.Value).ToArray())

Thank you so much for your help :slight_smile:

1 Like

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