SOLVED

Re: Velocity Scripting in a Different Partition

Go to solution
James_Walsh
Level 3

Velocity Scripting in a Different Partition

Hello,

I've been asked by a colleague to help out with some Velocity Scripting around capitalization in someones first name. We work in different partitions in the same Marketo instance and he knows the scripting I've used has worked for my emails. When I implemented the same scripting into his email in a different partition, the first name does not want to render. 

Here is my script. 

 

#set ($fname = ${lead.FirstName.toLowerCase()})

#set ($lname = ${lead.LastName.toLowerCase()})

$display.capitalize($fname)

 

It works fine in my partition but the other I get an error that reads  $display.capitalize($fname) 

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Velocity Scripting in a Different Partition

Sounds like you don't have the fields checked off in the tree in Script Editor.

 

But please always highlight code using the Syntax Highlighter so it's readable.

 

syntax_vtl.png

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Velocity Scripting in a Different Partition

Sounds like you don't have the fields checked off in the tree in Script Editor.

 

But please always highlight code using the Syntax Highlighter so it's readable.

 

syntax_vtl.png

James_Walsh
Level 3

Re: Velocity Scripting in a Different Partition

Thanks Sanford, this worked.