Velocity script - use greeting only when first name is known | Community
Skip to main content
Level 1
July 9, 2024
Solved

Velocity script - use greeting only when first name is known

  • July 9, 2024
  • 1 reply
  • 667 views

I am trying to use the first name token in my emails but have a custom script that eliminates the greeting when the first name of the record is not known. how would that custom script be written?

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

Remember to search first. There are tons of past posts on subjects like this.

 

In this case it’s as simple as:

#if( !$lead.FirstName.isEmpty() ) Hello ${lead.FirstName}, #end

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
July 10, 2024

Remember to search first. There are tons of past posts on subjects like this.

 

In this case it’s as simple as:

#if( !$lead.FirstName.isEmpty() ) Hello ${lead.FirstName}, #end