Count items in collection

Use the Count items in collection actionA tool for building the processes, logic, and direction within workflows. to count the number of items in a specified collectionA variable containing multiple items, such as email addresses. Collection variables are useful for storing and operating on query results. For example, you can set up collection variables for names, email addresses, and index values to store results from querying a list. You can then loop through items in a particular collection variable (names, emails, or index values)..

For example, you can use this action in a workflow when you want to count the total number of items in a list.

To learn more about collection actions, complete the Nintex for Office 365 - Collection Operations course on Nintex University.

Tip: Use this action within the For Each action.

Before you start 

Add and configure Count items in collection action

In the Designer:

  1. Click the Operations action group in the action toolbox.
  2. or

    Type the action name or function in the Search field at the top of the action toolbox.

  1. Drag the Get Item from Collection action to the point in the workflow when you want to count the items in a collection.
  2. Open the Action Configuration window. For steps on how to open the Action configuration window, see Action configuration window.
  1. Select a Target Collection.
  2. Select a variable for Total items.
  3. Click Save.

For more information on the fields and buttons see, Count items in collection fields, buttons and settings.