List connector methods
-
- UpdatedJan 30, 2025
- 4 minutes to read
- Yokohama
- RPA Hub
The List connector methods perform various actions on list items as part of an automation workflow. You must first expose the methods before using.
Add
Adds a single list item.
To provide inputs to the parameters, see Configure port properties.
Parameter | Description | Data port type | Data type | Default value | Mandatory? |
---|---|---|---|---|---|
Item | Name of the list item. | Data in | Object | None | Yes |
AddList
Adds a list of items.
To provide inputs to the parameters, see Configure port properties.
Parameter | Description | Data port type | Data type | Default value | Mandatory? | Notes |
---|---|---|---|---|---|---|
List | List of items. | Data in | Object | None | Yes | You can pass the list items from a variable or an appropriate component. |
Contains
Returns the Boolean value based on whether a list item exists.
To provide inputs to the parameters, see Configure port properties.
Parameter | Description | Data port type | Data type | Default value | Mandatory? |
---|---|---|---|---|---|
Item | Name of the list item that the method searches. | Data in | Object | None | Yes |
Return | Returns True if list item found, else, returns False. | Data out | Boolean | Not applicable | Not applicable |
Count
Returns the total count of list items added.
Parameter | Description | Data port type | Data type | Default value | Mandatory? |
---|---|---|---|---|---|
Return | Returns the total count of list items added. | Data out | Integer | Not applicable | Not applicable |
FindByProperty
Finds a list item based on the specified key and value. You must create at least one key value pair list item before executing this method.
To provide inputs to the parameters, see Configure port properties.
FindText
Finds text or regex in the list items based on the specified filter and returns the total occurrences of the text and the text itself.
To provide inputs to the parameters, see Configure port properties.
GetItem
Returns a list item based on its index value.
To provide inputs to the parameters, see Configure port properties.
Parameter | Description | Data port type | Data type | Default value | Mandatory? |
---|---|---|---|---|---|
Index | Index value of the list item. | Data in | Integer | None | Yes |
Return | Returns the list item. | Data out | Object | Not applicable | Not applicable |
GetItems
Returns the list items based on their index values. You must configure the index values first.
- Click the method settings icon (
).
- Click the add index icon (
).
- Enter the index value.
- Update the data type of the index value.
- Repeat the steps to add more index values.
- Click OK.
A data out port is created with each index value. The data out port returns the list item corresponding to the index value.
GetList
Returns all list items and lists created.
Parameter | Description | Data port type | Data type | Default value | Mandatory? |
---|---|---|---|---|---|
Return | Returns the list items and lists. | Data out | Array | None | Not applicable |
Remove
Removes the specified list item.
To provide inputs to the parameters, see Configure port properties.
Parameter | Description | Data port type | Data type | Default value | Mandatory? |
---|---|---|---|---|---|
Item | List item the method removes. | Data in | Object | None | Yes |
RemoveAll
Removes all list items added.
Reverse
Reverses the order of the index values of the list items.
SetItems
Updates the values of the list items. To use the method, you must first configure the method.
- Click the method settings icon (
).
- Click the add index icon (
).
- Enter the index value.
- Update the data type of the index value.
- Repeat the steps to add more index values.
- Click OK.
A data in port is created with each index value.
To provide inputs to the parameters, see Configure port properties.
Parameter | Description | Data port type | Data type | Default value | Mandatory? |
---|---|---|---|---|---|
Item | Accepts the value of the list items. | Data in | Object | None | Yes |
Sort
Sorts the list items.
ToArray
Returns the list items in the form of an array. You must add more than one list item before executing this method.
Parameter | Description | Data port type | Data type | Default value | Mandatory? |
---|---|---|---|---|---|
Return | Returns the list items in the form of an array list. | Data out | Array list | Not applicable | Not applicable |