Use Global token in a new velocity token | Community
Skip to main content
New Participant
July 27, 2022
Solved

Use Global token in a new velocity token

  • July 27, 2022
  • 1 reply
  • 1264 views

Hi,

I created a new token called my.daysFromStart and has a number and I wonder if is possible to use this token in a new email script token.

Example

#if ($days > {{my.daysFromStart}}) #end

 

But I don’t if is possible.

 

Thanks

 

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 SanfordWhiteman

No, you can’t simply refer to another {{my.token}} with the token name like that.

 

You can set (#set) a variable in one Velocity {{my.token}} and then refer to that same $variable in a subsequent {{my.token}} if both tokens are in the email.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
July 27, 2022

No, you can’t simply refer to another {{my.token}} with the token name like that.

 

You can set (#set) a variable in one Velocity {{my.token}} and then refer to that same $variable in a subsequent {{my.token}} if both tokens are in the email.

New Participant
July 27, 2022

Thanks Sanford, I'll follow your recommendation