When you use the Select Collection Data Item option in an activity, you need to select a data item that is flagged as a collection. Additionally, you can create a collection within a data model and use that collection with your activities.
To create a collection within a data model, you must have an existing data model that represents an "item" for which you want to create a collection.
To create a collection within a data model, complete the following steps:
- Check out the solution.
- Click the Create tab. The Solution Items ribbon menu is displayed.
-
Click
New Data Model. The
Data Model window is displayed with a default element.
Note: |
The default element displayed in this window is called the root. The name of this element will be the name of the data model. |
- In the Data Model window, right-click the root element and click Rename. The default element name, which is also the data model name, is highlighted.
- Type a name for the data model. The default name is replaced with the new name.
Note: |
By default, the name for the new data model will be displayed as Data Model 1. |
- In the Data Model window, right-click the root element. A shortcut menu is displayed.
- Select Add Child. A shortcut menu is displayed.
- Select the Linked Element type. The new linked element is displayed as a child element.
- In the Properties section, select the Is Collection check box.
- In the Name field, type a new name for the linked element.
- From the Data Model field drop-down list select an appropriate data model.
- Click the save button. You created a collection data model that is designed to hold multiple records of the linked child element’s data model.