How to add an item to a dictionary(C#) in UiPath?

How can I assign a value to a dictionary in UiPath?
// C#
MyDictionary.Add(“Name”, “David”)


Can you try to use either Assign activity or Add method with InvokeMethod activity?
Hope the following sample helps you.


It works. Great thanks.

1 Like

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