Conditional First Name Token

Anonymous
Not applicable

Re: Conditional First Name Token

Thanks so much, Sanford. Am I doing something wrong? I'm getting this where is no first name. Happy Holidays, BTW!

pastedImage_0.png

SanfordWhiteman
Level 10 - Community Moderator

Re: Conditional First Name Token

Make sure First Name is selected in the treeview on the right side of the script editor.

Anonymous
Not applicable

Re: Conditional First Name Token

You're a lifesaver!! Thanks so much!

SanfordWhiteman
Level 10 - Community Moderator

Re: Conditional First Name Token

Great! Mark as Correct​ when you get a chance?

Dory_Viscoglio
Level 10

Re: Conditional First Name Token

Not a new thread so they can't mark as correct   New threads are important.

SanfordWhiteman
Level 10 - Community Moderator

Re: Conditional First Name Token

Ah yes. I wouldn't bother opening this idea, but it would be cool if you could "fork" a thread to take ownership.

Scott_McKeighe2
Level 5

Re: Conditional First Name Token

Hey Robin!

I would utilize Sanford Whiteman​ 's solution here. It's the most elegant and simple form of this IF/THEN velocity for salutation.

In our use case, we needed to be able to pivot the salutation based on the recipient's honorifics. So a Doctor would get "Hi Dr. Smith," whereas a staff member would get "Hi James,".  To that end, you could really customize a salutation to whatever fits your business need, since you're evaluating a field's value to produce a desired output.