The Array Functions Premium Action 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 the 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 now 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 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.
Frequently Asked Questions #
What is the Array Functions Premium Action used for? #
It lets you locate and manipulate array data within a workflow, such as extracting specific objects from Shopify order line items or webhook response data.
Which data sources provide array fields? #
Available array data is collected from Shopify Triggers, the Inbound Webhook Trigger, and Custom Webhook action response data.
How do I find a specific object in an array? #
Select the “Find” action type, choose your array field, then enter a Key and Value under Filters to return objects that match.
Can I match on more than one criterion? #
Yes. Use the “Add Another Item” option to add additional key-value pairs so the action matches objects meeting multiple criteria.
What can I do with the returned data? #
You can use the returned object variables in later actions, including dynamic email or SMS content, If/Else branch conditions, and triggering additional automation steps.
Is this a Premium action? #
Yes, the Array Functions action is a Premium action within the Workflow Builder.