VLT Email Script for Lead is in List or Lead's Program Status | Community
Skip to main content
September 8, 2016
Question

VLT Email Script for Lead is in List or Lead's Program Status

  • September 8, 2016
  • 1 reply
  • 853 views

Hi all,

I'm trying to customise my email content using an Email Script. Basically I want to display different content if:

  1. The Lead is in Smart List (preferable), or
  2. The Lead is Member of Program with Lead Status="Registered"

Non-working example:

#if( $lead.ProgramStatus == "Registered" )

     #set($message = "Thanks for registering")

#else

     #set($message = "Register at...")

#end

Is this possible, and if so, how?

Thanks,
Matt

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
September 8, 2016

The notion of a single $lead.ProgramStatus doesn't make sense because a lead can be in multiple Programs.

If you can't directly duplicate the Smart List criteria within Velocity, you can create a segmentation (itself based on a SL) and then refer to the lead's segment in VTL. Segmentations may take up to 24 hours to update (depending on criteria) but give amazing power to Velocity scripts.