Re: Advanced Email Scripting and custom object and custom email html

Anonymous
Not applicable

Advanced Email Scripting and custom object and custom email html

We want to send custom html to our customer based upon their preferences. 

There can be potentially 7 different version of the email.  

Is it possible to save the html into 7 rows of custom objects and then create email token for each of the 7 versions then using velocity script pick out the right custom object for each email receipient.  We would use the APIs to update the 7 custom object automatically through a scheduled task.

Looking at the documentation, it seems like the custom object is linked to lead record by email address.
Can velocity script pull out all object regardless of the relationship between custom object and lead record?

Thanks.

Tags (1)
2 REPLIES 2
Kenny_Elkington
Marketo Employee

Re: Advanced Email Scripting and custom object and custom email html

Hey Jiun,

When pulling information from a custom object through velocity, it must be attached to the lead record for which it is being pulled.  It may be better for you to run the email campaigns through the requestCampaign, or import to list functions so that you can use token replacement with the programTokenList parameter.  This will allow you to pass custom HTML in a rich text token.
Anonymous
Not applicable

Re: Advanced Email Scripting and custom object and custom email html

Hi,

Do you know if the ScheduleCampaign can accomplish the same thing?

Do you know if I use program token, can I override an email script token ?

Thanks.