Token for Years since X occured | Community
Skip to main content
Travis_Schwartz
Level 4
March 9, 2022
Solved

Token for Years since X occured

  • March 9, 2022
  • 1 reply
  • 1438 views

I was tasked with creating an anniversary-style email for our members.

 

What I am wanting to do is take the existing lead record field Mbrship Open Date, which is when the member joined and create a token for how many years have passed since then. For example, say your Mbrship Open Date field said 3/9/2020 the value of the Token would be 2. That I could use in the design of the email.

 

It feels like this may have to be a velocity script, but perhaps maybe it can be done using a smart campaign and a new field that is "years since membership opened" and have the flow step populate that value... I just don't know how to do it, if it was 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 Darshil_Shah1

Agreed! Check out Sandy's comment for the velocity on the linked community thread to do the same.

Hope this helps.

1 reply

SanfordWhiteman
Level 10
March 10, 2022

If it's only for email output, there's no better way than Velocity.

Darshil_Shah1
Community Advisor and Adobe Champion
Darshil_Shah1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 10, 2022

Agreed! Check out Sandy's comment for the velocity on the linked community thread to do the same.

Hope this helps.