Hi everyone. I am working on a shopify automation to get all orders and update the stock of all my product. The flow is simple:
I watch all previous orders. I have a router for PAID orders and PARTIALLY REFUNDED / PENDING orders as they have different work flow. For the PARTIALLY REFUNDED / PENDING orders I need the GET AN ORDER module for the fullfilment ID and the GET A FULLFILMENT ORDER module as PARTIALLY REFUNDED orders means that on or more items in that order were cancelled. With the GET A FULLFILMENT ORDER module I can see which ones were cancelled.
In order to get all products of one order I need to use an iterator to separate the line items. So far so good. Additionally, I need the GET A PRODUCT module in order to get the barcode and SKU with which I can search for the products in my google sheet file.
So, I need an iterator for the GET AN ORDER module to get the product ID and the product variant ID for the GET A PRODUCT module and I need an iterator for the GET A FULLFILMENT ORDER module to get the right number of sold products.
Additional Info: The GET A PRODUCT module is only necessary as sometimes I sold products without a barcode or SKU in the past. And even though I updated them later shopify does not show them in the previous orders.
My problem is that even though everything seems to be correctly mapped in the end I have multiple identical outputs (in the image you see that I have 4 output bundles but 2 are identical). The multiple iterator seem to be the cause of the problem because when I remove on the output number is correct but I am missing crucial information in order to continue the flow. What am I missing and how can I correct the flow?
