Velocity Scripting in a Different Partition | Community
Skip to main content
New Participant
May 7, 2020
Solved

Velocity Scripting in a Different Partition

  • May 7, 2020
  • 1 reply
  • 1854 views

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) 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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.

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 7, 2020

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.

 

walsjamAuthor
New Participant
May 21, 2020

Thanks Sanford, this worked.