Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hey hey, I'm trying to make a flow :
- When a new order is created , the order to be tagged with a Customer Metafield value.
Currently trying the following ,and although on the flow app it says that it's successful, the tag with the metafieled value is not added on the order.
I currently use :
Solved! Go to the solution
This is an accepted solution.
Hi Raym1, there are a few issues in the code snippet you shared:
So the liquid code should look like this:
{% for metafields_item in order.customer.metafields %}
{% if metafields_item.namespace == "namespace" and metafields_item.key == "key" %}
{{metafields_item.value}}
{% endif %}
{% endfor %}
Just make sure to swap out the namespace and key to match the metafield you want to add as a tag.
Hope this helps!
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi Raym1, there are a few issues in the code snippet you shared:
So the liquid code should look like this:
{% for metafields_item in order.customer.metafields %}
{% if metafields_item.namespace == "namespace" and metafields_item.key == "key" %}
{{metafields_item.value}}
{% endif %}
{% endfor %}
Just make sure to swap out the namespace and key to match the metafield you want to add as a tag.
Hope this helps!
To learn more visit the Shopify Help Center or the Community Blog.
Appreciate your response Ethansz.
However, although the recent runs on the flow app say have the status: succeeded ,no tags are created on the order from the desired customer metafield value.
You have a typo...it should be {{metafields_item.value}} not {{ metafield.value}}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025