Using shopify > Order Created as a trigger, the return object looks something like this:
{
...
Line_Items_Name: product1, product2, product3
Line_Items_Price: 4.99, 5.99. 2.99
Line_Items_Tax_Rate: [0.025, 0.01, 0.04], null, [0.012, 0.015, 0.01]
}
When trying to work with the Line_Items_Tax_Rate lines, zapier is flattening this array and removing the null values. The above example looks like [0.025, 0.01, 0.04, 0.012, 0.015, 0.01]. When mapping Line_Items_Tax_Rate to a search, for example, Zapier thinks there are 6 tax lines, not 3.
How can I get Zapier to not flatten out the array, and when i reference bundle.InputData.tax_rate, it returns the array of rates per line (and null for line 2) for the 3 lines and NOT the value of the flattened array[i].
Question
How to manipulate the data from Shopify Order Created trigger
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.