You need to sign in to do that
Don't have an account?
SFDC New learner
how to use IF condition in email template
Hi All,
I am trying to display the name in the user signature in the email template body.
Hi {!User.FirstName},
body
Regards,
{!if(User.FirstName = "XYZ","Team","null")}
If the user's first name is XYZ ,it should appear as
Regards ,
Team
else it should appear as
Regards,
XYZ
Please help me on this.
Thanks,
Sirisha
I am trying to display the name in the user signature in the email template body.
Hi {!User.FirstName},
body
Regards,
{!if(User.FirstName = "XYZ","Team","null")}
If the user's first name is XYZ ,it should appear as
Regards ,
Team
else it should appear as
Regards,
XYZ
Please help me on this.
Thanks,
Sirisha
Hope this works.
But it just shows blank when I try to Send Test and Verify Merge fields.
it is showing like this
Regards,
{!if(User.FirstName = "XYZ","Team",User.FirstName)}
Thanks
Sorry for the delay.
I have copied and pasted using "Paste as Plain text(ctrl + shift + v)" ,it worked that way.But further I was trying to display "Support " in the next line like below it was showing blank.Please let me know if it is working for you or not.
Hi {!User.FirstName}
thanks
Regards,
{!if(User.FirstName= 'Sirisha', ' 'Team' & BR() & 'Support' ',User.FirstName)}
Thanks,
Sirisha
Use this:-