Activities
latest
false
Banner background image
Workflow Activities
Last updated Feb 23, 2024

Build Collection

UiPath.Activities.System.Collections.BuildCollection

Description

Creates a collection of items that have the same type as the first specified element.

Project compatibility

Windows | Cross-platform

Configuration

  • First Item - The first element of the collection.
  • Next Items - The next items to be added to the collection. Click the field to open the Collection Builder window or select docs image > Use collection to select a variable.
Additional options

Output

  • New Collection - Reference to the created collection for use in other activities.

Troubleshooting

A runtime error occurs when you try to use Build Collection with a single item: Build Collection: Value cannot be null. (Parameter ‘collection’).

To resolve this, use an Assign activity.

For example, to create a list of animals in the variable pets that should contain only the item dog, assign pets to new List(Of Animals) From {dog}.
  • Description
  • Project compatibility
  • Configuration
  • Troubleshooting

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.