Add item to collection

Use the Add Items to Collection action A tool for building the processes, logic, and direction within workflows. to add an item to a specified collection A 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).. The location to add the new item is based on the index provided.

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

Before you start 

Add and configure Add item to 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 Add Item to 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 the Target Collection that you want to add the item to.
  2. Select the Index number to specify where to add the item.
  3. Specify the value of the item you want to add.
  4. Select the output variable.

    Note: You can store the result into the variable used as the target collection or create a new collection with the new item. If you want to add the item to the same collection, select the same variable for Target collectionand Output variable.

  1. Click Save.

 

For more information on the fields and buttons see, Add Item to collection fields, buttons and settings.