CumberlandStree
2 years agoActive Member II
Can email address be used as a custom attribute in liquid?
Hi
I am writing liquid code to exclude people with yahoo and gmail addresses. When I added the code to a campaign - this is the response that I received -
- "The following variables are not valid: email_address. If you attempted to use a custom attribute, it must use the format {{custom_attribute.${your_variable}}}"
This is the code that I have = {{custom_attribute.${email_address}}} include “yahoo”
The format of the custom attribute seems on point so what is not working with it'? Is it not possible to choose "email_address" as a custom attribute in liquid?
Hey Steve,
Email address is a Standard Attribute that you can call in using {{${email_address}}} - no need to use the custom attribute syntax. You can find all of the Liquid syntax for standard attributes here.