Can local tokens be used for triggers/filters in Smart Lists? | Community
Skip to main content
Dan_Stevens_
Level 10
February 19, 2014
Solved

Can local tokens be used for triggers/filters in Smart Lists?

  • February 19, 2014
  • 6 replies
  • 3078 views
If we define local tokens with a program/folder, can they be used for the values in triggers and filters - such as the one below?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dan_Stevens_
Basically, tokens cannot be used in Smart Lists in Smart Campaigns.  They can only be used in the following flow steps of smart campaigns:
  • Change Data Value
  • Interesting Moments
  • Salesforce Campaign Steps (add, remove, change status)
  • Create Task
But I also found another use for tokens: as variables within javascript.  This is useful since we have specific js included on a series of landing page that contains Forms 2.0 forms - and this page is used within an iframe on our website.  In order for the confirmation to open in the entire window (and not just the iframe), the javascript references the form ID.  I created a local token (FormID) at the program level, which then populates the variable/token used in the javascript.  Big time saver.

6 replies

February 19, 2014
I don't see anything wrong with your scenario in the image. 

Are you wanting to replace the URL with a token? If yes, you can certainly use tokens as trigger values. 

Since  it is local you'll  want to make sure that you build the workflow with in the same program

-Jeff 
Dan_Stevens_
Level 10
February 19, 2014
Yes, that's the goal Jeffrey.  So I would be replacing the URL in the image above with something like {{my.visits web page URL}}.  So that's good to know.

The only way to add a token here is to go to the tokens screen and copy the token name, correct?  It would be great if we could have a token icon in the toolbar that would allow us to grab the token local to the page.  Maybe I'll submit an idea.
February 19, 2014
That is exactly right. Yes, it does not make it obvious! 
Dan_Stevens_
Level 10
February 19, 2014
I spoke too soon.  So far, I have not had success in using tokens for these values.  Not only does this not work after testing the following scenarious, but it doesn't always provide the appropriate visual (red underline text / red lightbulb).  For example, it look liked it would work here (but didn't):



And it was clear that it was not going to work here (produced a blinking, red lightbulb):


Dan_Stevens_
Dan_Stevens_AuthorAccepted solution
Level 10
February 20, 2014
Basically, tokens cannot be used in Smart Lists in Smart Campaigns.  They can only be used in the following flow steps of smart campaigns:
  • Change Data Value
  • Interesting Moments
  • Salesforce Campaign Steps (add, remove, change status)
  • Create Task
But I also found another use for tokens: as variables within javascript.  This is useful since we have specific js included on a series of landing page that contains Forms 2.0 forms - and this page is used within an iframe on our website.  In order for the confirmation to open in the entire window (and not just the iframe), the javascript references the form ID.  I created a local token (FormID) at the program level, which then populates the variable/token used in the javascript.  Big time saver.
June 17, 2014
There's an idea you can vote for this: community.marketo.com/MarketoIdeaDetail?id=08750000000HkBnAAK