Skip to main content
Solved

Embedding Custom Properties in Email


Forum|alt.badge.img+3

Hi,

I’m trying to embed a custom property into an email but when I try to preview the email, it says that “the lookup filter needs 2 arguments, 1 was given”. How do I fix this?

 

Thanks

Best answer by retention

Hi @Joe Tang - welcome to the community!

Do you think you can paste your code here so we can help you trouble shoot? It’ll be easier to help you figure out what might be causing that error. 

If you are using a custom property, this is the standard syntax:
{{ person|lookup:'Favorite Color' }} 

The custom profile property name in this case is “Favorite Color” - note the quotes around the field.  

A list of the Template Variables for reference is here:

Let us know what your code looks like and we can help!

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 938 replies
  • Answer
  • July 13, 2022

Hi @Joe Tang - welcome to the community!

Do you think you can paste your code here so we can help you trouble shoot? It’ll be easier to help you figure out what might be causing that error. 

If you are using a custom property, this is the standard syntax:
{{ person|lookup:'Favorite Color' }} 

The custom profile property name in this case is “Favorite Color” - note the quotes around the field.  

A list of the Template Variables for reference is here:

Let us know what your code looks like and we can help!


Forum|alt.badge.img+3
  • Author
  • Contributor I
  • 7 replies
  • July 14, 2022

{{ person|lookup: “Company”}} 

and “Company” was the customized property I made


Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • July 15, 2022

Thank you @retention for your guidance on this!

Also @Joe Tang, I responded to another thread you’re a part of with an alternative solution. Going to link that below as well.

Thanks for being a community member.


Forum|alt.badge.img+2
  • Problem Solver I
  • 9 replies
  • January 12, 2024

@retention - How do you actually to manage getting custom properties in the template? i have run into an issue here: