Skip to main content
Michael Adams (Your Policy) 님이 #Formulas에 질문했습니다

Is it possible to add an if/then statement inside of the lightning HTML email template?

 

I have a URL link that is present on most Salesforce user profiles and in the email template I want to be able to reference the link. I want the email to read “please click this {{merge tag user link}} and take this action“… But I only want this to appear if the salesforce user has that link present on their profile. 

 

Again:

IF {{user.link}} PASS please click this link

ELSE null/blank

 

How would I express that in the email template or is this even possible?

답변 7개
  1. 2024년 8월 18일 오후 8:51

    Hi ,

     

    {{#if Sender.Canopy_Connect__c}}

    You can alway use this link {{{Sender.Canopy_Connect__c}}}

    {{else}}

    null

    {{/if}}

0/9000