Skip to main content
Robb_Barrett
Level 10
August 3, 2016
Respondido

Need debug help: Email script elseif

  • August 3, 2016
  • 5 comentários
  • 2391 Visualizações

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


Este tópico foi fechado para respostas.
Melhor resposta por SanfordWhiteman

if

isn't valid VTL.

#if

is what you want.

5 comentários

SanfordWhiteman
Level 10
August 3, 2016

if

isn't valid VTL.

#if

is what you want.

Robb_Barrett
Level 10
August 3, 2016

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
Robb Barrett
SanfordWhiteman
Level 10
August 3, 2016

What's your full email script token?