Array Functions Premium Action

Written By Amiso Pius (Collaborator)

Updated at December 9th, 2024

The Array Functions Premium Action is a powerful tool that enables users to locate and manipulate array data efficiently. Whether you’re handling Shopify order line items or webhook triggers, this action simplifies the process of extracting useful information.

In the workflow, add a suitable Trigger. In this demo, we are using the Shopify Order Placed trigger. Click the “+” icon, then in the actions menu, search for and add "Array Functions" to the workflow.

📌NOTE: This is a Premium action.

Select Action Type

Select “Find” as the action type to return objects that match the Key-Value.

Select Field

All the fields with data type arrays available in the workflow are listed here. The list of available array data is collected from Shopify Triggers, Inbound Webhook Trigger, and Custom Webhook action response data. In the example below, we are using the Shopify Order Placed Trigger and checking if a product with product ID “zGhad23wfadfa” is part of the Shopify line items.

Filters

To find the matching object input the Key and Value under Filters.

Select Key

Here is the list of key variables from the selected array field. In this example, the list of Shopify line items' key variables is also included.

Select Value

Enter Value To Find The Match.

Add Another Item

Need to find objects that match multiple criteria? Add another key-value pair using the "Add Another Item" option.

Using The Array Function In Shopify

With the returned object variables, you can now use the extracted data across various actions, such as creating a dynamic email or SMS content, setting conditions in If/Else branches, or triggering additional automation steps.

Remember to Save the action.

Array Functions empower you to work smarter with your data, reducing manual effort and ensuring accuracy in automation. By learning to navigate and apply these tools, you can unlock greater efficiency in tasks ranging from e-commerce management to workflow optimization.