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?

The link you are referring to recommends testing with a sample email.  I guess you cannot preview a script token.

Nicholas_Manojl
Level 9

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

Did you read the big pull quote in my post?

Anonymous
Not applicable

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

I don't see View As: Lead Detail as an option. The only View As options I see are: Default, Lead, List.

By the way, what's the link to your post with the big pull quote?

I did try putting myself in a static list and using the email script token that Sanford created, which consisted of: ${lead.FirstName}

But it doesn't populate on preview.

SanfordWhiteman
Level 10 - Community Moderator

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

If you don't see what Nicholas is seeing, and you're sure you're looking in the same part of the editor, maybe you should open a case.

He was referring to the documentation which backs up Jamie's original response.

NOTE: The original version of this response referred to Editor 2.0, but this works in Editor v1 as well -- for me at least.

Nicholas_Manojl
Level 9

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

I bet that is because you haven't got the checkbox selected for First Name in the email script editor.

SanfordWhiteman
Level 10 - Community Moderator

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

Denise GreenbergNicholas Manojlovic​ this discussion spurred me to put up a blog post I've been wanting to do for a long time: http://blog.teknkl.com/hide-email-script-my-tokens-in-marketos-web-page-view/

Nicholas_Manojl
Level 9

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

oh my god.. I didn't know that..

That is definitely getting priority on the list. I am finding myself using email scripts a lot.

SanfordWhiteman
Level 10 - Community Moderator

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

Welcome (again) to "Things only 2 people in the world know about."

Anonymous
Not applicable

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

You were right - but now it's checked and it makes no difference. Do I need to put something else in the email script token besides this?

${lead.FirstName}

@Sanford - I'm definitely using Email 2.0.

Nicholas_Manojl
Level 9

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

It seems to be a typo in the documentation. It should be:

"You can also use the Email Preview to test your script.  To do so, you must select View As: Lead Detail, and  OR select a lead from an available static list.  This has the added benefit of outputting any exceptions that may have occurred during script execution:"