I want the scenario to detect product SKU variants, assign a value, aggregate/sum those values, and place inside a Data Store.
What is the problem & what have you tried?
I did some test runs and it appears to be that Make is only recognizing the 1st SKU in the array.
I tried searching the community and found something along the lines that Make.com may experience difficulty interpreting a complex array from Shopify and that users should add a Set Variable module before the Iterator. I have tried this but it still doesn’t work.
Error messages or input/output bundles
No specific error.
The output just shows value for the 1st lineitem.sku
This is wrong. What this is doing is mapping the array inside the first item of the array. See its in Item 1 and not in the array it self. Toggle the map option on top and change it to this:
This needs to be replaced with a switch module, since its checking the value and switching the output to something else. Also, once you add the array properly in the iterator, you will see the actual mappable items inside, so make sure you use the correct one.
Here you are multiplying the previous output with the first item from he line items array’s quantity, not with the current one. Take the quantity value coming from the iterator to take the current one. Also you can do this multiplication directly in the aggregator and skip this module entirely.