Send Emails only on weekdays | Community
Skip to main content
Level 2
July 3, 2023
Solved

Send Emails only on weekdays

  • July 3, 2023
  • 2 replies
  • 3057 views

Hi there,

 

Working with AJO here. 

 

We need to ensure that emails, as part of a Journey, are sent only from Monday to Friday. Profiles enter the Journey on a daily basis based on a rolling date. 
Ideally, we would like profiles to enter the Journey on Saturdays and Sundays as well, for them to be queued and processed on Monday.

Any hints on how to get it done in AJO? Thank you!

Best answer by DavidKangni

Hi @mandarinooo 

use a condition to define your days then you'll have 2 wait activities (one for Sat and one for Sun) with the formula 

toDateTimeOnly(setHours(nowWithDelta(X, "days"), H))

X --> integer for days: 2 for entrances on Sat and 1 for entrances on Sun

H --> time you want to resume queue e.g 9 will be 9 AM your journey timezone

 

 

Thanks,

David

2 replies

Level 4
July 3, 2023

Have a look at wait activity (right after start of your journey) in combination with a custom formula. 

I quickly checked and it seems there are no convenient functions available for your particular use case. May need some tinkering.

Level 2
July 3, 2023

Hi @mdonke ,
Thank you for your suggestion. 
I had a look. I was hoping someone could share the custom formula that has been used to achieve the use case 🙂

Silvio6
Level 5
September 15, 2025

Have you find a solution to this using custom wait activity?

DavidKangni
Community Advisor
DavidKangniCommunity AdvisorAccepted solution
Community Advisor
July 20, 2023

Hi @mandarinooo 

use a condition to define your days then you'll have 2 wait activities (one for Sat and one for Sun) with the formula 

toDateTimeOnly(setHours(nowWithDelta(X, "days"), H))

X --> integer for days: 2 for entrances on Sat and 1 for entrances on Sun

H --> time you want to resume queue e.g 9 will be 9 AM your journey timezone

 

 

Thanks,

David

David Kangni
Sukrity_Wadhwa
Community Manager
Community Manager
July 24, 2023

Hi @mandarinooo,

Was @davidkangni's solution helpful to resolve your query? In case it was helpful, then kindly choose it as the 'Correct Reply'. If not and you still need more help, then do let us know.

Thanks!

Sukrity Wadhwa