List: Get first item
Use this action to return the first item in a JSON array and save it to a new field.
This action is typically part of a process that involves Web API actions or JSON fields. A common application for this action is to follow up after a XML: Convert XML to JSON action.
How to configure this action
Fields for this action
-
List Field
- Enter the array to sort. Enter a valid JSON array or a
{{field-reference}}
for a field containing a JSON array.- An example of valid JSON array format is:
[ "pear", "apple", "banana" , "melon" ]
- An example of valid JSON array format is:
- Enter the array to sort. Enter a valid JSON array or a
-
Return Field Name
- The name of the field where the result is saved
What will this output?
This action will output a new field containing a string with the first item in the List Field JSON array. For example, pear
Output fields for this action
-
Return field name
- The first item from a JSON array. The field name will be the return field name defined during configuration.
Thanks for your feedback
We update the Help Center daily, so expect changes soon.
Link Copied
Paste this URL anywhere to link straight to the section.