I have data coming from shopify with Line Items being saved into a Google Sheet. When an order is updated, new data comes in via a zap.
I have to ensure all old line items (that aren’t in the order anymore) are deleted, update any changes to line items and add any new line items.
I decided the best way was to update the existing rows to mark items as updated, and then just add all the new items again.
However I have to look through the google sheets once, and then once that has finished, the Shopify items once. How do I do this without running a loop inside a loop?