Date Tokens in Subject Line | Community
Skip to main content
Tara_Rowe
New Participant
March 14, 2022
Question

Date Tokens in Subject Line

  • March 14, 2022
  • 3 replies
  • 2502 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Vinay_Kumar
Community Manager
March 15, 2022

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
New Participant
March 15, 2022

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
Community Manager
March 15, 2022

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

SanfordWhiteman
New Participant
March 14, 2022

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”?

Colby_Dix
New Participant
March 14, 2022

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.