SOLVED

Re: Use Global token in a new velocity token

Go to solution
wbarillasgt
Level 1

Use Global token in a new velocity token

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Use Global token in a new velocity token

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.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Use Global token in a new velocity token

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.

wbarillasgt
Level 1

Re: Use Global token in a new velocity token

Thanks Sanford, I'll follow your recommendation