Keragon’s Pick from Array helper enables you to efficiently retrieve a specific item from a list (array) within your workflow. This is particularly useful when you need to consistently select the first, last, or a specific position in a list of values.
How to Use the Pick from Array Helper
-
Open your workflow editor.
-
Click the + icon to add a new step.
-
In the step selection panel, click "Helpers".
-
From the Helpers options, select "Data Helpers".
-
Choose the "Pick from Array" action.
Configure the Helper
-
Click the
{}
icon to open the variable selector and map the array (list) data from a previous step. -
Click the Input field and select the array variable.
-
Select the Position of the Item to Retrieve:
-
First: Returns the first item in the list.
-
Last: Returns the last item in the list.
-
Custom: Specify a custom index to return the item at that position (Index starts at
0
).
-
-
Click "Save" to apply changes.
-
Click "Test Step" to preview the result.
-
Go to the Outputs tab to view the retrieved item.
Example Usage:
-
Input Array:
["Apple", "Banana", "Cherry"]
-
Position: First
-
Output:
"Apple"
-
Position: Custom (Index 1)
-
Output:
"Banana"