Re: Date Tokens in Subject Line

Tara_Rowe
Level 5

Date Tokens in Subject Line

We would like to send weekly reports to those who opt-in and have the date in the subject line populate weekly to show which week's report they are receiving example below

 

"Open for your 3/11/2022 Weekly National Report"

 

Looked through the tokens and nothing seems to have this format, other than us sending and changing this email weekly to show the date. Goal would be to automate the entire process but without the token for a date not sure it's possible? Any suggestions?

5 REPLIES 5
Colby_Dix
Level 5

Re: Date Tokens in Subject Line

You could use multiple tokens to output what you're going for there.
Something along the lines of:

Open for your {{system.date}} {{program.ReportName}}

 

System date would just pull the date at the time of the email though. And the "ReportName" would be something you set up to populate based on the program and/or campaign associated.

ooooh shiny.
SanfordWhiteman
Level 10 - Community Moderator

Re: Date Tokens in Subject Line

This can be easily done using Velocity but what is the precise day of the week represented by 3/11/2022? Is that “the Friday of the current week Sa-Su”?

Vinay_Kumar
Level 10 - Community Advisor

Re: Date Tokens in Subject Line

Content edited by moderator to conform to recommended practices.

Yes, this can be achieved using the API. You need to write the script to fetch the data and update the name as per your requirements. 

SanfordWhiteman
Level 10 - Community Moderator

Re: Date Tokens in Subject Line

You certainly don’t need any API calls to accomplish this (nor would it even be practical since the intended value can change from day to day).

Vinay_Kumar
Level 10 - Community Advisor

Re: Date Tokens in Subject Line

@SanfordWhiteman I'll get back to you on this with more details.