SOLVED

Re: Can I dynamically call an image using a token?

Go to solution
Anonymous
Not applicable

Can I dynamically call an image using a token?

I would like to insert a picture in an email based on the token lead.state. I have images in my Marketo Images area named after each state (e.g. Ohio.jpg, Iowa.jpg). I would like the top banner of an email to have their state showing and then show them an offer based on their lead.state location. I'm having a hard time connecting the token to the image. I've read through some other discussions but haven't had any luck. What am I missing?

 
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

This is no problem as you stated above.

If the URL is...
http://marketo.url.to.image/state.jpg

Then change the URL to be 
http://marketo.url.to.image/{{lead.State}}.jpg


That's it. Just make sure there's a graphic for every state possibility (ie Provinces) & a backup/default image in case it is blank.

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

You should be using segmentations and the dynamic content features. Here is a really good article on how to do what you are wanting to do. https://community.marketo.com/MarketoTutorial?id=kA250000000Kz0SCAS

 
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

Thanks for the response Shannan. I know how to do this by segmentations but I was hoping it was possible by using Tokens instead. 
 
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

This is no problem as you stated above.

If the URL is...
http://marketo.url.to.image/state.jpg

Then change the URL to be 
http://marketo.url.to.image/{{lead.State}}.jpg


That's it. Just make sure there's a graphic for every state possibility (ie Provinces) & a backup/default image in case it is blank.
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

Hey Adam, thanks for the reply. Sorry if this question is dumb, but where would the updated image URL go? Would I just edit the URL of the image in that image record? I can't seem to edit the image URL there. 
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

I would upload them with the correct names. You can click on an image & tell it to replace & it will change the url (but not the name), but I would just to be safe, upload them again.
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

It's Adam's world and we're all just glad to be living in it 🙂
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

Hush Charlie. There are a lot of excellent people (yourself included) who contribute to the community.
Anonymous
Not applicable

Re: Can I dynamically call an image using a token?

Update to say this worked exactly as you described, Adam. Thank you so much for the help.