Skip to main content

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

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!


{{ person|lookup: “Company”}} 

and “Company” was the customized property I made


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.


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

 


Reply