Workflow - Advanced Array Functions

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.  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.  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.   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.   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.  Entering the Value for Matching Input the value that corresponds to the key to find the match.  Adding Another Item You can enhance your search by adding multiple key-value pairs to find a more specific object.   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.