Workflow - Array Functions Premium Action

Created by ENAb platform, Modified on Fri, 31 May at 7:31 AM by ENAb platform

Array Functions

To handle array data in workflow

A screenshot of a phone

Description automatically generated

 

Select Action Typ

A screenshot of a computer

Description automatically generated

 

Action Type: Find

To find the matching key-value's in an array of objects and return the object

A screenshot of a function

Description automatically generated

 

Select Field

All the fields with data type array 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 below example we are using Shopify Order Placed Trigger and checking if a product with product id "zGhad23wfadfa" is part of the shopify line items


Select Shopify > Line Items

A red line in a box

Description automatically generated

 

Select Key-value to find matching object

A screenshot of a computer

Description automatically generated

 

Select Key

The list of key variables from the selected array field are listed here. In this example, the list of shopify line items key variables are listed.

A screenshot of a computer

Description automatically generated

 

Enter value to find the match

A screenshot of a computer

Description automatically generated

 

Add another item

You can also find the matching object with multiple key-value pairs by adding another key-value item

A screenshot of a computer

Description automatically generated

A screenshot of a computer

Description automatically generated

 

 

By completing the above steps, you can now use the returned object variables from Array Function as custom values in email, sms, if/else, etc. In the below example, the shopify line items variables are listed in the custom values.

 

A screenshot of a computer

Description automatically generated

 

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