How to increment a token | Community
Skip to main content
New Participant
January 20, 2021
Solved

How to increment a token

  • January 20, 2021
  • 1 reply
  • 3662 views

Is there a way to have a token field  and then have another token that's +30 days from the previous token field?  For example, I have this situation in an email:

Your membership expired on {{lead.Membership End Date:default=end date}}; however, if you renew before <<GracePeriodEndDate>> we'll be happy to extend your  USD renewal rate.

The "Grace Period  End Date" is 30 days after the lead: membership end date.  Is there a way to create a token for Grace Period End Date that is 30 days after the lead: membership end date? 

Thank you

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

You can use Velocity to just display 30 days from now. Follow the when-is-7-days-from-today example at https://blog.teknkl.com/velocity-days-and-weeks/.

1 reply

SanfordWhiteman
New Participant
January 20, 2021
Can you? Yes. But why do you need a whole separate, permanent field? Do you always just need to output today-plus-30d in an email, or would you also be using the field in filters?
New Participant
January 21, 2021

I don't think I need a separate permanent field - just a token in an email that can add 30 days to the previous token {{lead.Membership End Date}}.  I'm using "Membership End Date in past 0 days" as my smart list filter to pull those whose membership expired today.

If you have a better solution, please share.  I know there's about 10 ways to do the same thing in Marketo and some ways are better than others!

Thank you

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
January 21, 2021

You can use Velocity to just display 30 days from now. Follow the when-is-7-days-from-today example at https://blog.teknkl.com/velocity-days-and-weeks/.