SOLVED

Easy way to get year into email template?

Go to solution
Geoff_Krajeski1
Level 10 - Champion Alumni

Easy way to get year into email template?

Rather than updating a common footer in an email template, is there any way to programmatically use the system's or client's current year?

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Aslihan_Ayan_Ha
Level 7

Re: Easy way to get year into email template?

I did this as my first velocity scripting. I used email script token at the parent folder. The code was :

#set ($year = ${system.Date})

©$date.get('yyyy') Demand Spring, 148 Lanigan Crescent Ottawa, ON, Canada K2S 1G9

One less thing to remember to update at the end of the year.

View solution in original post

4 REPLIES 4
Robb_Barrett
Marketo Employee

Re: Easy way to get year into email template?

Putting the year in as a token in your top level folder is the easiest way.

Robb Barrett
Geoff_Krajeski1
Level 10 - Champion Alumni

Re: Easy way to get year into email template?

Would this be as a system year?

Robb_Barrett
Marketo Employee

Re: Easy way to get year into email template?

No, you'll still have to update it but the beauty of tokens is that changing them doesn't require you to re-approve assets. 

You can create an email script for your emails and on your landing pages put in javascript if you're familiar with coding.

Robb Barrett
Aslihan_Ayan_Ha
Level 7

Re: Easy way to get year into email template?

I did this as my first velocity scripting. I used email script token at the parent folder. The code was :

#set ($year = ${system.Date})

©$date.get('yyyy') Demand Spring, 148 Lanigan Crescent Ottawa, ON, Canada K2S 1G9

One less thing to remember to update at the end of the year.