How to increment a token | Community
Skip to main content
Level 2
Jan 20, 2021 2:12 AM UTC
Solved

How to increment a token

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jan 21, 2021 8:37 PM UTC

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/.

7 replies

SanfordWhiteman
Level 10
Jan 20, 2021 3:03 AM UTC
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?
Translate
Level 2
Jan 21, 2021 3:36 PM UTC

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

Translate
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jan 21, 2021 8:37 PM UTC

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/.

Translate