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}}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025