Workflow - Advanced Array Functions

Modified on Wed, 28 Aug at 12:38 PM

Effectively handling array data within your workflow is essential for smooth operations. The Advanced Array Functions feature empowers you to easily navigate and manipulate array structures in your workflow.


Array Functions in Workflow Actions

To get started, select the "Array Functions" action within your workflow. 

Array Functions Selection


Choosing the Action Type

Action Type: Find
This option allows you to search for specific key-value pairs within an array of objects, returning the matched object. 


Select Action Type


Selecting the Field - Shopify > Line Items

Here, you'll see all available array fields within the workflow. These fields come from various sources such as Shopify Triggers, Inbound Webhook Trigger, and Custom Webhook action responses. For example, you can use the Shopify Order Placed Trigger to verify if a product with a specific product ID, like "zGhad23wfadfa," is included in the Shopify line items.

 Field Selection


Identifying Key-Value Pairs

After selecting the field, you'll need to choose the key-value pair to locate the desired object in the array.


 Key-Value Selection


Selecting the Key

You'll be presented with a list of key variables from the chosen array field. In this scenario, these key variables are from Shopify line items. 


Key Selection


Entering the Value for Matching

Input the value that corresponds to the key to find the match. 


Value Input

Adding Another Item

You can enhance your search by adding multiple key-value pairs to find a more specific object.

 Add Another Item

Utilizing Array Functions in Shopify

Once you’ve completed these steps, the returned object variables from the Array Function can be used as custom values in email, SMS, conditional logic, and more. 


Using Array Function



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article