cancel
Showing results for 
Search instead for 
Did you mean: 

Can email address be used as a custom attribute in liquid?

CumberlandStree
Active Member II

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?

1 ACCEPTED SOLUTION

jakedavis
Active Member II

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

View solution in original post

1 REPLY 1

jakedavis
Active Member II

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