SOLVED

Need debug help: Email script elseif

Go to solution
Robb_Barrett
Marketo Employee

Need debug help: Email script elseif

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


Robb Barrett
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Need debug help: Email script elseif

if

isn't valid VTL.

#if

is what you want.

View solution in original post

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator

Re: Need debug help: Email script elseif

if

isn't valid VTL.

#if

is what you want.

Robb_Barrett
Marketo Employee

Re: Need debug help: Email script elseif

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 - Community Moderator

Re: Need debug help: Email script elseif

What's your full email script token?

Robb_Barrett
Marketo Employee

Re: Need debug help: Email script elseif

#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

Robb Barrett
SanfordWhiteman
Level 10 - Community Moderator

Re: Need debug help: Email script elseif

Remove the curly braces in that context.