1. Home
  2. Docs
  3. Microsoft Extensions
  4. RemoveFromDictionary

RemoveFromDictionary

Remove From Dictionary

  • Checks whether particular value exist in Dictionary or not. It takes Dictionary variable and value to be searched for as input and gives result as Boolean.

Properties

      Common

  • DisplayName (String)- The display name of the activity.

      Misc

  • Dictionary (InArgument<IDictionary<SelectedKeyDatatype, SelectedValueDatatype >>)- Dictionary represents a collection of keys and values.
  • Key (InArgument<String>)- Unique items in the dictionary which holds the values.
  • Private (Boolean)-If selected, the values of variables and arguments are no longer logged at Verbose level.
  • Result (OutArgument<Boolean>) Boolean value received as output of this activity.

Example

  • Create a new Process and then click on Manage Packages. Now search for Activities.Extension in search bar. Install this package and click Save.
  • Then create a Sequence and inside it call Add to Dictionary Create dict variable.
  • Now simply enter the Key and Value which you want in pair and similarly add more Add to Dictionary activities to add more items to the Dictionary.
  • Then add Key Exist activity into the workflow. Pass the dictionary variable and key into the activity that you have to search for. Create Result 
  • Use if condition to select the case. If key exist in Dictionary, then remove it using Remove From Dictionary
  • Then add Remove From dictionary activity into the workflow.Pass the Dictionary variable and key into the activity that you have to remove. Create Result
  • The key would have been deleted from the Dictionary