Adds a data value to a Dictionary object.



  • Dictionary - The Dictionary object where the data will be added.

  • Key - Key of the data to be added.

  • Value - The value of the data to be added.


  • ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.


  • DisplayName - Renames the activity.


  1. Create a Dictionary<Int32,Int32> variable and name it dictionary.
  2. Add an Assign activity inside the initial Sequence.
  3. In the Assign To field, add the dictionary variable. 
  4. In the Assign Value field, write new Dictionary(Of Int32, Int32) since its default value is null.
  5. Under the Assign activity, add an Add To Dictionary activity.
  6. In the Add to Dictionary Dictionary field, add the dictionary variable.
  7. In the Add to Dictionary Key field, write 1.
  8. In the Add to Dictionary Value field, write 20. This means the Key 1 has the value of 20.
  9. Under the Add to Dictionary activity, add a Write Line activity.
  10. In the Write Line Text field, write dictionary(1).ToString

    The use case should look as the following screenshot:

This should be the result in the Output panel: