Re: Using email address as default in token not working

Grégoire_Miche2
Level 10

Re: Using email address as default in token not working

Hi again Melyssa Mendoza​,

The last option will be a short velocity script that should surely do the trick.

-Greg

Anonymous
Not applicable

Re: Using email address as default in token not working

I will try both out and report back. Thanks again!

Grégoire_Miche2
Level 10

Re: Using email address as default in token not working

And here is the script to put in the program script token

#if(${lead.Primary Account Rep Schedule URL} == "")

  #set($url = "xyz@domain.com") href="mailto:xyz@domain.com"

#else

  #set($url = "${lead.Primary Account Rep Schedule URL}") href="${lead.Primary Account Rep Schedule URL}"

#end

${url}

-Greg