Skip to main content
Contributor I
July 13, 2022
Solved

Embedding Custom Properties in Email

  • July 13, 2022
  • 4 replies
  • 2625 views

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.
    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!

    4 replies

    retention
    Partner - Platinum
    retentionAnswer
    2025 Champion
    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!

    Joseph Hsieh // retentioncommerce.com // X: @retention
    Joe TangAuthor
    Contributor I
    July 14, 2022

    {{ person|lookup: “Company”}} 

    and “Company” was the customized property I made

    Dov
    Klaviyo Alum
    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.

    DD
    Problem Solver I
    January 12, 2024

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