What is the Best Way to Process a Shopify Metafield Array and Add Products to Collections?

This topic was automatically generated from Slack. You can find the original thread here.

Hi. What’s the current most up to date workaround for the conditional split path processing? Multiple workflows? I need to check if a value from a shopify metafield array exists as a shopify collection title and then if it exists add the product to it, and if it doesn’t exist create the collection and then add the product to it. It seems like I need 5 workflows for this. One to split and run through the products. One to split and run theorugh the metafields. One to split and run through the metafield values. Two to process the metafield values depending on whether they already exist as colletions or not. Is that right? Is there any better way before I start attemping to build it?

I think the other way would be using code step with looping & conditioning logic. Though it need sufficient coding knowledge and also knowledge about how Pipedream action code works.

I’ll think of a workaround then :wink: