How can I write to a list of products metafield in Flows?
Topic summary
Issue: A user needs to write to a list of products metafield using Shopify Flow.
Solution Provided:
- Another user shared a community thread with instructions on implementing this functionality
- The original poster successfully created a working Flow implementation (screenshot shared)
Technical Concern Identified:
- A race condition exists in the current setup where “update product metafield” actions could run in parallel
- Recommendation: Place the second action in the “then” path of a For each step to ensure sequential execution
Current Challenge:
- Tag matching is too broad: the query matches both “stylen_ace jacket” and “stylen_ace jacket patterned” when only “stylen_ace jacket” is intended
- Code snippet shows a Liquid template loop iterating through product tags to find those containing ‘_nelyts’
Status: Partially resolved - basic functionality works but needs refinement for precise tag matching and proper action sequencing.
There are several threads on how to do this. Here’s one: https://community.shopify.com/post/2034786
It might work now, but you have a race condtion and should avoid that-- the actions for update product metafield could run in parallel. Instead, I would put the second action in the “then” path for the For each step. It will run after that loop is done.
Alright thanks!
My only problem now is that this query matches both “stylen_ace jacket” and “stylen_ace jacket patterned” when style =“stylen_ace jacket” :
{% for tags_item in product.tags %}
{% if tags_item contains 'stylen_' %}
{% assign style = tags_item %}
{% endif %}
{% endfor %}
tag:"{{ style }}"


