Skip to main content
Travis_Schwartz
Level 4
Mar 9, 2022 11:51 PM UTC
Solved

Token for Years since X occured

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.
Darshil_Shah1
Darshil_Shah1Accepted solution
Adobe Champion, Community Advisor, UG Leader
Mar 10, 2022 1:15 AM UTC

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

Hope this helps.

2 replies

SanfordWhiteman
User Group Leader
User Group Leader
Mar 10, 2022 12:32 AM UTC

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

Translate
Darshil_Shah1
Adobe Champion, Community Advisor, UG Leader
Darshil_Shah1Adobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
Mar 10, 2022 1:15 AM UTC

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

Hope this helps.

Translate