Custom token from a custom Object field
Hey Marketo Community,
I'm trying to define a custom token with the following email script:
#set($my.ProjectOwnerName = "${Milestone1_Project__cList.get(0).OwnerId}")
#end
${my.ProjectOwnerName}
We have custom Object in SFDC called "Project" and I'm trying to define this new token by the value in the Project field name "Owner ID".
When I reference this token in an email in the subject line and email copy, I get the following error message. Any ideas how to troubleshoot? Anyone have a good set of error code definitions to reference? Thanks in advance for your help.
An error occurred when procesing the email Headers!
Encountered "#end\n" near
Subject: #set($my.ProjectOwnerName = "${Milestone1_Project__cList.get(0).OwnerId}") #end
${my.ProjectOwnerName} owns this project
Daniel