Collects a value from a dictionary.



  • Result - True or False boolean result if a value was collected from a dictionary.

  • Value - The value collected from the specified dictionary.


  • Dictionary - The Dictionary object whose value would be collected from.

  • Key - The Key of the value to be collected.


  • 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 15. This means the Key 1 has the value of 15.
  9. Add your second Add To Dictionary activity.
  10. In the Add to Dictionary Dictionary field, add the dictionary variable.
  11. In the Add to Dictionary Key field, write 2.
  12. In the Add to Dictionary Value field, write 45.
  13. After your second Add to Dictionary activity, add a Get From Dictionary activity. 
  14. Create an Int32 variable and name it output.
  15. In the Get From Dictionary Dictionary field, add the dictionary variable.
  16. In the Get From Dictionary Key field, write 1
  17. In the Get From Dictionary Value field under Attributes, add the output variable.
  18. After the Get From Dictionary activity, add a Write Line activity.
  19. In the Write Line Text field, write output.ToString

    The use case should look as the following screenshot:

            Since the value of Key 1 is 15, this should be the result in the Output panel: