Error received when trying to approve an email. Not sure what I'm doing wrong here
An error occurred when procesing the email Body!
Encountered "#elseif" near
<pre>if(${lead.HCIT_Product_Interest__c}.includes("Radiology - VAR"))
Sarah
#elseif(${lead.HCIT_Product_Interest__c}.includes("Radiology"))
Christina
#elseif(${lead.HCIT_Product_Interest__c}.includes("Cardiology"))
Suzanne
Solved! Go to Solution.
Stared at that for a while and didn't notice that. Grrr.
OK, now I get this:
Lexical error, Encountered: "i" (105), after : "." at *unset*[line 77, column 128] near
#elseif(${lead.HCIT_Product_Interest__c}.includes("Radiology"))
Christina
#elseif(${lead.HCIT_Product_Interest__c}.includes("Cardiology"))
Suzanne
#elseif(${lead.HCIT_Product_Interest__c}.in
What's your full email script token?
#if(${lead.HCIT_Product_Interest__c}.includes("Radiology - VAR"))
Sarah
#elseif(${lead.HCIT_Product_Interest__c}.includes("Radiology"))
Christina
#elseif(${lead.HCIT_Product_Interest__c}.includes("Cardiology"))
Suzanne
#elseif(${lead.HCIT_Product_Interest__c}.includes("Perinatal"))
Rob
#elseif(${lead.HCIT_Product_Interest__c}.includes("High Acuity"))
Rob
#end
Remove the curly braces in that context.