Count Collection
- Gets the number of elements in 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<Int32>) – returns a Int32 which denotes the number of items present in the Collection.
- Private (Boolean) – If selected, the values of variables and arguments are no longer logged at Verbose leve
Example
- Create a new Process and then click on Manage Packages. Now search for Activities.Expressions 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 Count Collection activity inside the sequence. Enter the input Collection variable and take output in the result parameter