Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!

Recurring delivery - Query help

Avatar

Level 2

Hi,

I need to set up a recurring delivery for a customer communications notice.

The notice needs to go out 30 days before their renewal date.

Is the correct expression "SubDays(@renewalDate,30)" equal to DateOnly(GetDate())?

The written form of this is - 

Query: Renewal date - 30 day equal to dateOnly(current date)

3 Replies

Avatar

Level 4

Hi,

i suggest you to use the function ToDate() that converts a date + time as a date.

So I think that the correct expression becomes ToDate(SubDays(@renewalDate,30)) equal to ToDate(GetDate()).

In this way, remove the time from both fields (in case it is present).

Eveline

Avatar

Level 2

I also realised that this notification will need to send on weekdays only.

Where the email date does not fall on a weekday, I will need the email to send earlier (on Friday).

What is the solution around this?

Avatar

Level 5

Should be able to use a scheduler to define those options. Set it to delivery daily then it will allow you to pick which days of the week you want.