The Array Functions Premium Action lets you find and manipulate array data in your workflows. Whether you're handling Shopify order line items or webhook triggers, it makes extracting useful information straightforward.

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.

Remember to Save the action.

Using The Array Function In Shopify

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

Array Functions help you work more efficiently with your data, cutting down on manual effort and keeping your automations accurate. Once you get the hang of them, they're useful for everything from e-commerce management to broader workflow optimisation.