I’m using Shopify’s API and am working towards a little custom app for a shop I work with.
We want to match SKUs and Product Titles.
I’ve used a collection call, where I grab all the products from a collection and store this data inside a list. It stored inside a record called ‘Product Collection’ which has several tables with additional information (all stored as a list: skus, titles, unique product #, unique image #, etc).
Sometimes these products have the same title.
Now, when I want to pair these with an SKU, I iterate through a scheduled API. I want to create unique items, stored in ‘Individual Products’, where upon initializing through the workflows, it would iterate through the lists and dump the aforesaid elements inside one record. Rinse and repeat.
All goes well and according to plan until it reaches the first duplicate title, in which case it deletes itself.
Best way to get around the duplicate?