Skip to main content
added 418 characters in body
Source Link
Lukas Lunow
  • 22.2k
  • 4
  • 27
  • 59

I would do it using ContentArea('ID') AMPScript function:

Build 7 separate content areas, containing HTML for the hero of the email, and select each of them, based on the weekday.

SET @today = Format(SystemDateToLocalDate(Now()), "dddd")

Then build IF / ELSE IF which switches between the different content areas, based on the value of @today

EDIT:

You might not even need to use a DE to map dates and content IDs. Imagine this scenario. You add a number field to your sendable DE, which you increment for each email sendout. This field is then read into the email, into the @JourneyDay - then you can use it to retrieve the content areas, named: Day1, Day2, Day3 and so on.

%%=ContentBlockByName(Concat("Content Builder\Day",@JourneyDay))=%%

I would do it using ContentArea('ID') AMPScript function:

Build 7 separate content areas, containing HTML for the hero of the email, and select each of them, based on the weekday.

SET @today = Format(SystemDateToLocalDate(Now()), "dddd")

Then build IF / ELSE IF which switches between the different content areas, based on the value of @today

I would do it using ContentArea('ID') AMPScript function:

Build 7 separate content areas, containing HTML for the hero of the email, and select each of them, based on the weekday.

SET @today = Format(SystemDateToLocalDate(Now()), "dddd")

Then build IF / ELSE IF which switches between the different content areas, based on the value of @today

EDIT:

You might not even need to use a DE to map dates and content IDs. Imagine this scenario. You add a number field to your sendable DE, which you increment for each email sendout. This field is then read into the email, into the @JourneyDay - then you can use it to retrieve the content areas, named: Day1, Day2, Day3 and so on.

%%=ContentBlockByName(Concat("Content Builder\Day",@JourneyDay))=%%

fix link, formatting
Source Link
Adam Spriggs
  • 31.1k
  • 6
  • 44
  • 88

I would do it using ContentArea('ID') ampscript function: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-programmatic-content.meta/mc-programmatic-content/contentarea.htmContentArea('ID') AMPScript function:

Build 7 separate content areas, containing HTML for the hero of the email, and select each of them, based on the weekday. SET @today = Format(SystemDateToLocalDate(Now()), "dddd")

SET @today = Format(SystemDateToLocalDate(Now()), "dddd")

Then build IF / ELSE IF which switches between the different content areas, based on the value of @today@today

I would do it using ContentArea('ID') ampscript function: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-programmatic-content.meta/mc-programmatic-content/contentarea.htm

Build 7 separate content areas, containing HTML for the hero of the email, and select each of them, based on the weekday. SET @today = Format(SystemDateToLocalDate(Now()), "dddd")

Then build IF / ELSE IF which switches between the different content areas, based on the value of @today

I would do it using ContentArea('ID') AMPScript function:

Build 7 separate content areas, containing HTML for the hero of the email, and select each of them, based on the weekday.

SET @today = Format(SystemDateToLocalDate(Now()), "dddd")

Then build IF / ELSE IF which switches between the different content areas, based on the value of @today

Source Link
Lukas Lunow
  • 22.2k
  • 4
  • 27
  • 59

I would do it using ContentArea('ID') ampscript function: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-programmatic-content.meta/mc-programmatic-content/contentarea.htm

Build 7 separate content areas, containing HTML for the hero of the email, and select each of them, based on the weekday. SET @today = Format(SystemDateToLocalDate(Now()), "dddd")

Then build IF / ELSE IF which switches between the different content areas, based on the value of @today