Logo

Please install Yoast or RankMath to use breadcrumbs.

Array Functions Premium Action Workflow in GoHighLevel

What is Array Function?

Array Functions stand out as a premier feature within workflow automation, tailor-made to efficiently manage array data.

This functionality is very useful for complex workflows involving arrays.

 How to use Action Types?

  • Add the Action – Click the “+” button to add an action. Search for Array Functions or scroll down to the “Actions” tab to select the same.
  • Select Action Type – Post selecting the Array Function action we need to select the Action Type.

 2.1 Action Type : Find

  • To find the matching key-values in an array of objects and return the object.
  • 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

  • Select Key-value to find matching object.
  • 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.
  • Enter value to find the match.
  • Add another item – You can also find the matching object with multiple key-value pairs by adding another key-value item.
  • 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.

2.2 Action Type : Filter

  • Select the β€œFilter” action type from the dropdown. This action type will help in filtering the array by matching key-value in an array of objects.

Use case

  • Eg: Filter the array by product group and then send it via Custom Webhook.
  • 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.

          Select Shopify β†’ Line Items

  • Select Key value to find the matching index. 
  • 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.
  • Enter value to find the match.
  • Add another item – You can also find the matching object with multiple key-value pairs by adding another key-value item.

2.3 Action Type : Find by Index

  • Select the β€œFind by Index” action type from the dropdown. This action type will help in finding the array’s index data.
  • 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.

            Select Shopify β†’ Line Items

  • The entered index value will return.

2.4 Action Type : Line Items

  • Select the β€œLine Items” action type from the dropdown. This action type will help to reconstruct an array with custom keys.

Use case

  • To reconstruct the array structure before sending it via Custom Webhook
  • To reconstruct the array before storing in Google Sheet (Create Rows – later)
  • To reconstruct the array to match Email Builder Shopping cart structure
  • 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.

            Select Shopify β†’ Line Items

  • Enter the custom value in the β€œKey” input field and select the corresponding value from the value dropdown.
  • Add another item – You can also find the matching object with multiple key-value pairs by adding another key value item.

2.5 Action Type : Math

  • Select the β€œMath” action type from the dropdown. This action type will help to calculate Sum, Min, Max, Avg by matching key-value in an array of objects.

Use case

  • Eg: To calculate Subtotal(line item total), Line Items in cart(count), Total items (qty).
  • 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.

            Select Shopify β†’ Line Items

  • Select Key value to find the matching index. 
  • 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.
  • Select or deselect from the list of options available.

Related Articles

Facebook / Instagram – User comments on a Post trigger on Workflow in GoHighLevel

What are the new Triggers? To initiate a workflow, simply select “Add Trigger.” Explore comment automation triggers conveniently housed under the “Facebook/Instagram events” category. Easily locate your desired trigger through direct search or by scrolling within the category. 1. New Triggers Navigate to triggers and choose from the assortment of available options tailored to your […]

John Mamado

IVR (Triggers and Actions) on Workflow in GoHighLevel

Transforming your business communication landscape, our Interactive Voice Response (IVR) system represents a paradigm shift. By harmonizing state-of-the-art technology with user-friendly design, our IVR capabilities elevate customer interactions to unprecedented levels of efficiency and satisfaction. Here’s how: – Available only for LC Phone customers – Pro Tip: Use the “IVR” Workflow Recipe for a head […]

John Mamado

How to use the Workflow Slack Premium Action in GoHighLevel

The Workflow Slack Premium Action feature empowers users to automate message delivery to Slack channels and users, enhancing communication efficiency and fostering team synergy. With three primary functions, it allows for messaging individuals, private channels, or public channels, facilitating seamless collaboration within teams. Agencies on Any Plan  ($97, $970, $297, $2970, $497, $4970) can access […]

John Mamado

How to use Facebook comment automation for Facebook Groups on Workflows in GoHighLevel

The functionality of triggering user comments on a post in Facebook and Instagram extends seamlessly to Facebook Groups as well. Prerequisite How to use this feature for Facebook Groups? When setting up a workflow, simply select “Add Trigger” to proceed. You’ll find triggers associated with comment automation under the “Facebook/Instagram events” category. Navigate directly to […]

John Mamado

How to Create a Birthday Reminder Workflow in GoHighLevel

Elevate your customer engagement with a Birthday Reminder Workflow Trigger that enables personalized experiences for your clients. This tutorial teaches how to create and customize this versatile trigger for tailored birthday greetings or promotions. Enhance your marketing strategy with a personalized touch through this comprehensive guide. What is the Birthday Reminder Workflow trigger? Please Note: […]

John Mamado

How to use the Date/Time Formatter Workflow Action in GoHighLevel

Experience the Date/Time Formatter action, a dynamic utility empowering users to reshape date or date and time configurations and analyze dates within workflows. Seamlessly transform date formats to align with various applications, database systems, or communication platforms such as email, SMS, or Slack. Moreover, effortlessly assess date disparities to streamline date-centric computations and strategic planning. […]

John Mamado
Logo
Go HighLevel Onboarding, Training, Education, Coaching, Support, Products and Services. Enabling Customer Success for GHL Agencies Worldwide
Copyright Growthable LLC 2024 | All Rights Reserved

Come & join us LIVE in Sydney!


Marketing Agencies & HighLevel Meetup Australia & New Zealand

Fishburners - Sydney CBD - September 5th and 6th, 2024. Get Your Tickets Now!
Share this with someone who needs to know!

Grab our free techincal onboarding checklist