Solved

Embedding Custom Properties in Email

  • 13 July 2022
  • 4 replies
  • 1675 views

Badge +2

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

icon

Best answer by retention 13 July 2022, 23:53

View original

4 replies

Userlevel 7
Badge +57

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!

Badge +2

{{ person|lookup: “Company”}} 

and “Company” was the customized property I made

Userlevel 7
Badge +61

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.

Badge +1

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

 

Reply