Good day. I am stuck trying to break down a Squarespace order. The structure is one person can order more than one quantity and each quantity, aka a line item(ish) is unique. I am trying to iterate over each line item to extract values out of it. Ultimately, I am flattening this data to insert into Salesforce.
Is what my bundle coming in from Squarespace looks like. Each of those bundles is an actual invoice. Inside that it looks like this:
Inside it is customizations and there are 12 fields in there that I need to work with. I have an iterator on the Squarespace module that is on line items, then I put another iterator on customizations. This seems to work fine. In Squarespace I show 57, but when I get past the second iterator, I have 64 records! Now I am stuck. I am only seeing one ‘field’ in the customizations.
I looked at what is showing in DataTools looking at the record from Squarespace:
Then I went back to the bundle that showed in Squarespace, and it shows
The results are only showing the last item in the line items array. I can’t get to the ones prior to it. How do I get to that data?