We are thrilled to announce new Action types in Array Function to make it even more formidable.
Select the “Find by Index” action type from the dropdown. This action type will facilitate in determining 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 gathered from Shopify Triggers, Inbound Webhook Trigger, and Custom Webhook action response data.
Select Shopify → Line Items
The entered index value will return.
Select the “Line Items” action type from the dropdown. This action type will aid to reconstruct an array with custom keys.
Use case:
Select Shopify → Line Items
Enter the custom value in the “Key” input field and select the corresponding value from the value dropdown.
Select the “Math” action type from the dropdown. This action type will assist to calculate Sum, Min, Max, Avg by matching key-value in an array of objects.
Use case: To calculate Sub total(line item total), Line Items in cart(count), Total items (qty)
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.
‘In Case You Missed It’ you can catch up on all our past product updates here. Stay tuned for more exciting updates and enhancements coming your way!