Scheduled email when 3 days remain for due date

Hi friends,

I have a bot to schedule email when only 3 days remain for the due date of maintenance.

eldderri_0-1721951100820.pngeldderri_1-1721951141372.png

the email is not sent when making simulation.How to sole this issue?

 

Solved Solved
0 4 204
1 ACCEPTED SOLUTION

Thank you for the update. But not sure how the expression 


@eldderri wrote:

([Date prévue de Maintenance] - TODAY()) = 3


is producing a date difference of 3 days. This is so because when one date is subtracted from another in AppSheet, it gives results in hours , minutes and seconds (hh:mm:ss) and not in days. Example below: when from today which is 27th July, a date of 21st July is subtracted, it give results in hours (144:00:00) which is 6 days.

Suvrutt_Gurjar_1-1722098589150.png

 

So one needs to extract hour component from the  result.  by using HOUR() function and divide the hours by 24 to get the number of days between the two dates . The example from the help article is also given below.

Suvrutt_Gurjar_0-1722098485065.png

So just wondering how 


@eldderri wrote:

([Date prévue de Maintenance] - TODAY()) = 3


is working for you.

 

 

 

View solution in original post

4 REPLIES 4

Please try 

HOUR([Date prevue De Maintenance]- TODAY())/24 =3

Date and time expressions - AppSheet Help

 

Hi,

Sorry,I have made a mistake in testing the bot.It is working now with this expression in my condition:AND([Action] = "Maintenance Programmée", ([Date prévue de Maintenance] - TODAY()) = 3).

When I tested it with your expression ,it stopped working.

Any way,thank you for your reply.

 

Thank you for the update. But not sure how the expression 


@eldderri wrote:

([Date prévue de Maintenance] - TODAY()) = 3


is producing a date difference of 3 days. This is so because when one date is subtracted from another in AppSheet, it gives results in hours , minutes and seconds (hh:mm:ss) and not in days. Example below: when from today which is 27th July, a date of 21st July is subtracted, it give results in hours (144:00:00) which is 6 days.

Suvrutt_Gurjar_1-1722098589150.png

 

So one needs to extract hour component from the  result.  by using HOUR() function and divide the hours by 24 to get the number of days between the two dates . The example from the help article is also given below.

Suvrutt_Gurjar_0-1722098485065.png

So just wondering how 


@eldderri wrote:

([Date prévue de Maintenance] - TODAY()) = 3


is working for you.

 

 

 

Double-check the bot’s configuration to ensure the timing is set correctly for 3 days before the due date. Also, verify if there are any errors in the email scheduling logic or if the simulation settings might be affecting the outcome. If the issue persists, checking the logs for any error messages might provide more insight.

Hope that helps!

Top Labels in this Space