Create List
AutomatR.DefaultActivities.List.CreateList<T>
The "Create List" activity in AutomatR, categorized under List, allows you to create a new empty list. This activity is useful for initializing a list that can be populated and manipulated in subsequent activities within your automation workflows.
Properties
Name | Description |
---|---|
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Create List" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the newly created list as a variable of type List\<T>. This variable can be utilized in subsequent activities for adding, updating, or iterating through the list. Variables of the appropriate type to store the list. |
How to use:
- Drag and drop the "Create List" activity onto the workflow.
- Configure the properties, optionally setting a delay based on your requirements.
- Execute the workflow to create a new empty list.
- Utilize the output variable (Result) in subsequent activities for list-related operations.
Example: Consider an example where the "Create List" activity is used to initialize an empty list of integers:
Create List:
Result: myList
In this example, the activity creates a new empty list named "myList," which can be subsequently populated with integer values or manipulated in other list-related activities.