Is it possible to add a customer’s metafield value to a tag in Shopify Flow?
Even if I enter a variable in metafield, I cannot expand the contents of the loop, so I cannot retrieve the value. Is there a way to achieve this?
Hi, you can add metafields values in tag and use liquid loops in as the body of a tag. An example is:
{% for metafields_item in order.customer.metafields %} {% if metafields_item.key == ‘yourkeyname’ %} {{metafields_item.value}}{% endif %}{% endfor %}
1 Like
