Re: Is there some clever way to preview how a token will be populated?

Anonymous
Not applicable

Re: Is there some clever way to preview how a token will be populated?

Yes, I think you are correct about the documentation.

And guess what? My First Name Email Script Token is working now!!!! Yay!! I'm not sure what happened. My guess is that I forgot to save it after I fixed the check box.

I'm intrigued now! What do people commonly use email script tokens for? They only came up for me because of the custom object.

Nicholas_Manojl
Level 9

Re: Is there some clever way to preview how a token will be populated?

I use it for conditional content a lot using the IF/ELSE functionality.

ie,

IF product = xyz

print some info here...

ELSE product = abc

print something else here.

I generally find it's easier to do this than setup another segmentation. Campaign Monitor has a much more user friendly interface by the way, with inline conditional formatting but that's another story.

And as you mentioned, it is the only way to access the data in a custom object in an email.

Nicholas_Manojl
Level 9

Re: Is there some clever way to preview how a token will be populated?

I also have a script which corrects the first initial of a name to a capital, which I use with caution but which is generally useful nonetheless.

There are a few other examples on this community floating around, some of which I think are a bit naff but others which are very useful.

Anonymous
Not applicable

Re: Is there some clever way to preview how a token will be populated?

Hi There - Just to close the loop on the instructions - Nicholas's correction is correct. The instructions as-written accurately describe how to preview tokens on a landing page (as opposed to an email).

SanfordWhiteman
Level 10 - Community Moderator

Re: Is there some clever way to preview how a token will be populated?

That should be fine.  Output should be same as the regular {{lead.First Name}} token.

Since you're having trouble finding the Preview-as-Lead functionality, have you just sent an email (not a sample) to someone with a First Name?

Anonymous
Not applicable

Re: Is there some clever way to preview how a token will be populated?

I wasn't having trouble finding Preview-as-Lead - I couldn't find Preview-as-Lead-Detail (because it doesn't exist). At any rate, my test is working now! Woo-hoo! Now I can go to bed without fretting about this.

You guys are coding wizards and are inspiring me to want to learn!

Anonymous
Not applicable

Re: Is there some clever way to preview how a token will be populated?

That clarifies it

Anonymous
Not applicable

Re: Is there some clever way to preview how a token will be populated?

I'll have to study this when my brain is fresh. Appreciate all the help!

In the meantime, my use case went away because each of the customers our email needs to target have multiple tail numbers and it's only a subset of them that apply. So I see no way to pull the right tail numbers out of the custom object. However, I'm interested in understanding how to use Email Script Tokens properly and get them to preview correctly in any case!

I may post my current dilemma to a new thread.