Set a custome wait time - wait till next morning 09am - with advanced expression | Adobe Higher Education
Skip to main content
Level 3
December 2, 2022
Resuelto

Set a custome wait time - wait till next morning 09am - with advanced expression

  • December 2, 2022
  • 3 respuestas
  • 2954 visualizaciones

Hi,

 

We get some events triggered at 4 am at night and we want to wait until the next day at 9 am until we send the e-mails. 

I saw that I could use the expression field for that, but I have no idea how to code it. I also couldn't really find it in the documentation. 

So I basically want what is already an example in the picture,  but instead of wait till the end of the day, I want to wait till the next morning. How can I do that? 

 

Thank you! 

 

Este tema ha sido cerrado para respuestas.

3 respuestas

Level 3
December 5, 2022

Hi,

 

Thank you! I will try that 🙂 

Level 2
December 26, 2022

You Can set it like this in the custom Type of wait expression

 

toDateTimeOnly(setHours(nowWithDelta(1,"days"),9))

 

Level 3
December 27, 2022

Thank you! I am going to try this 🙂

Sukrity_Wadhwa
Community Manager
Community Manager
January 13, 2023

Hi @talithapa,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!

Sukrity Wadhwa
Level 3
July 26, 2023

Hi! Thanks for your help so far. I do have one additional question. 

 

If the event is triggered at night, I want to wait till 9 am until the e-mail is sent. But if the event is triggered at 1 pm at day, the e-mail may be sent right away. I only want to prevent sending e-mails at midnight.