List: Get first item

🕙  1 minute read

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" ]
  • 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.

Sorry about that. What was the most unhelpful part?

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.

Need more help?

If you're signed in to Catalytic Community, you can ask other users a question. You'll be redirected to Community where you can add more info.