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

Anonymous
Not applicable

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

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

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

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

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.