1. Home
  2. Docs
  3. Microsoft Activities
  4. GetItemFromCollection

GetItemFromCollection

Get Item From Collection

  • This activity is used to get an item on particular index from a collection.

Properties

      Common

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

      Misc

  • Collection (InArgument<ICollection< SelectedDatatype > >) – takes the Collection variable as input.
  • Result (OutArgument< SelectedDatatype >) – returns the item stored on particular index from the Collection variable.
  • Index (InArgument<Int32>) – An Int32 value to get item from this index value.
  • Private (Boolean)- If selected, the values of variables and arguments are no longer logged at Verbose level.

Example

  • Create a new Process and then click on Manage Packages. Now search for Activities in search bar. Install this package and click Save.
  • Then create a Inside it first create a collection. Initialize it and add an element to it.
  • Now drag Get Item From Collection activity inside the sequence. Enter the input Collection variable, index value and take output in the result parameter