How to include customer metafield in shopify automation email

Hello,

I am trying to include a customer metafield in a shopify automation email but i am not being able to make it appear, what i am doing is adding a custom liquid block and putting {{ customer.metafields.oneclickpopup.oneclickpopupdiscountcode }} that is the metafield that i want but when the email is sent nothing appears. I also tried to create an if condition {%- if customer.metafields.oneclickpopup.oneclickpopupdiscountcode != blank -%} to show another text but it also appears blank

Anyone know how to solve it?

Thank you in advance

Best

I don’t believe that’s possible. Here are the list of liquid variables available to email campaigns:

https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-email/create-email/custom-liquid

Thank you!

It is a pity that they don’t allow you to use other variables :disappointed_face:

Yeah! Hopefully soon! Not sure if you’re interested in using a 3rd party app, but we have an email feature that you could use for this.