SOLVED

Re: Custom Objects Data to add in Email

Go to solution
Jay00031987
Level 4

Custom Objects Data to add in Email

I have created a custom objects with fields is having data type as a string in which I am storing value as a image url and CTA URL separately. So that I can use this data in my email design to be update as well as change the CTA via script token. But, before starting I want to understand that

1. when I am using string field to capture the value as URL is it ok to use in email script?

2. I am creating dynamic content using custom objects table is it ok to implement email script? as segmentation is not allowed in Custom objects.

3. when I am implementing email script to create dynamic content shall I create multiple token for each image and URL or need to combine it in one email script with proper coding and design.

 

 

Jay
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Mark_Price
Level 7

Re: Custom Objects Data to add in Email

Email Scripting in Marketo is really Apache Velocity and it's quite powerful once you get the syntax down. 

1. Should be fine, but you should store the URL without the https://  OR strip it in Velocity.  In order for the links to work you need to output <a href="https://${var}?param=etc">Velocity Link</a>

2. This is a good example for using Email Scripting.  There isn't another way to merge in the Custom Object data.

3. I usually make a larger complicated script that is setting variables and doing all the transforms then reference those variables where it should appear in the email. 

This topic should describe the technique: 
https://nation.marketo.com/t5/Product-Discussions/Default-Value-for-Velocity-Token/m-p/122046#M80311 

hope it helps



View solution in original post

2 REPLIES 2
Mark_Price
Level 7

Re: Custom Objects Data to add in Email

Email Scripting in Marketo is really Apache Velocity and it's quite powerful once you get the syntax down. 

1. Should be fine, but you should store the URL without the https://  OR strip it in Velocity.  In order for the links to work you need to output <a href="https://${var}?param=etc">Velocity Link</a>

2. This is a good example for using Email Scripting.  There isn't another way to merge in the Custom Object data.

3. I usually make a larger complicated script that is setting variables and doing all the transforms then reference those variables where it should appear in the email. 

This topic should describe the technique: 
https://nation.marketo.com/t5/Product-Discussions/Default-Value-for-Velocity-Token/m-p/122046#M80311 

hope it helps



SanfordWhiteman
Level 10 - Community Moderator

Re: Custom Objects Data to add in Email


1. when I am using string field to capture the value as URL is it ok to use in email script?


Yes, like Mark said, and you shouldn't be using the URL datatype, period.