Skip to main content
Contributor I
Jul 13, 2022 9:25 PM UTC
Solved

Embedding Custom Properties in Email

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

    This topic has been closed for replies.
    retention
    retentionAnswer
    2025 Champion
    Jul 13, 2022 9:53 PM UTC

    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!

    Joseph Hsieh // retentioncommerce.com // X: @retention

    4 replies

    retention
    Partner - Platinum
    retentionAnswer
    2025 Champion
    Jul 13, 2022 9:53 PM UTC

    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!

    Joseph Hsieh // retentioncommerce.com // X: @retention
    Joe TangAuthor
    Contributor I
    Jul 14, 2022 12:06 AM UTC

    {{ person|lookup: “Company”}} 

    and “Company” was the customized property I made

    Dov
    Klaviyo Alum
    Jul 15, 2022 1:45 PM UTC

    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.

    DD
    Problem Solver I
    Jan 12, 2024 5:25 PM UTC

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