Remove From List
AutomatR.DefaultActivities.List.RemoveFromList<T>
The "Remove From List" activity in AutomatR, categorized under List, allows you to remove the value of a specific item in a list. This is useful when you need to eliminate a particular element from a list based on its index.
Properties
Name | Description |
---|---|
Input | |
Index Number | Specifies the index of the item you want to remove from the list. It represents the position of the item in the list. Integer variables containing the index value. |
List | Specifies the list from which you want to remove the item. It represents the list containing the item to be removed. Variables of type List\<T> containing the data. |
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 "Remove From 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. |
How to use:
- Drag and drop the "Remove From List" activity onto the workflow.
- Configure the properties, specifying the list from which to remove the item and the index of the item to be removed.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to remove the specified item from the list.
Example: Consider an example where the "Remove From List" activity is used to eliminate an item from a list of strings:
Remove From List:
List: myList
Index: 3
In this example, the activity removes the item at index 3 from the list named "myList."