It works perfectly if there is only one value in prods.category, but it is a list type metafield and will sometimes have multiple values. I want to only take the first value.
However, at the moment it will put both in.
As Flow is limited in terms of what liquid tags can be used and there isn’t really a way of replicating how the code works anywhere else I’m a bit at a loss.
The AC on this are:
Given product A has ‘Value A’ & ‘Value B’ in product.metafields.prods.category
When the flow is run
Then only ‘Value A’ should be added to productType via the HTTP request
I’ve tried splitting, slicing, first and a few other ways but have hit a wall.
You shouldn’t need to know that. Click “Add a variable”, choose “product” and then “metafield (requires arguments)”. Choose your metafield…it will insert the liquid for you