I’m trying to create a task that sends a custom email based on a Date field. I want to send the email only once when the Date field is exactly 14 days away.
How can I set the date logic so the task only triggers once?
For example, if I select “within the current 14 days,” the task will send an email to that record every single day within that 14 day period, right? Not good.
{DATE} is during the next 3 months
{DATE} is after the next 11 weeks
(Runs monthly)
Untested, but should lead you there.
Result:
When the task runs on January 1, all April weddings (April 1 through April 30) receive the email. So it’s not exactly 3 months but approximately.
It’s worth noting that Knack’s terminology when talking about dates is a bit tricky.
During the next 14 days is different from during the next 2 weeks, even though they sound exactly the same.
During the next 14 days means exactly what it says. It’s literally 14 days.
During the next 2 weeks means 2 weeks beginning on the next Sunday. (Note: A Knack week starts on Sunday).
Example: October 4
During the next 14 days would mean: From now until October 18.
During the next 2 weeks would mean: The entire weeks starting October 9th and October 16th.
@andrewstee38626 I believe he would welcome a formula approach; the tricky part is writing that formula. Feel free to share any ideas.
It should be capable of handling weddings that are the following year (e.g. Today is October 4, 2022. Wedding Date is January 4, 2023). The task will send 1 email when a wedding date is 3 months away.
I have a similar situation this works for me, try this.
Create an Equation field:
Name: DaysToWedding
Equation Type: Date
Date Type: Days
Result Type: Number
In the editor: {weddingdate}>0 ? {weddingdate}-currentTime():999
Run a task daily looking for DaysToWedding = 30 (or whenever)
This will turn minus when the weddingdate is in the past and could be used for a “How did we do” email.
Hi,
Have tried this but what happens is that an email is sent 14 days after the date (which sounds logical to me looking at it)
{DATE} is before the previous 13 days
{DATE} is during the previous 14 days
(Runs daily)
And when I set After today it says you cant set date before today