Day of the week through the Expressions section in AJO | Community
Skip to main content
dparraabad
Level 2
August 12, 2024
Question

Day of the week through the Expressions section in AJO

  • August 12, 2024
  • 3 replies
  • 1466 views

Hi everyone,

 

How can I get the day of the week from the expressions section in Adobe Journey Optimizer? I was trying the following way, but I don't see a function that allows me to get if it is Saturday or Sunday based on the now() function.

 

Regards,

Diego P.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Pradeep_Kumar_Srivastav
Community Advisor
Community Advisor
August 13, 2024

Hi @dparraabad ,

 

You can use something like below

 

 

dparraabad
Level 2
August 13, 2024

Hi Kumar, 

 

That is right, but I can't see the daysOfWeek() function in the expression of wait section. 

 

 

Regards,

Diego P.

Mohan_Dugganab
Adobe Employee
Adobe Employee
August 13, 2024
dparraabad
Level 2
August 13, 2024

Hi Dugganab, 

 

That is right, with that strategy we can know if the day is Saturday or Sunday, but due to node limit issues in the Journey, we are looking to apply 1 custom wait that applies a specific amount of days if it is Saturday or Sunday.

 

It should work like this:
1. If the customer arrives at the conditional and today is Monday-Friday, send the notification.
2. If the customer arrives on parole on Saturday, apply a 2-day wait, until he/she arrives on Monday.
3. If the customer arrives on parole on Sunday, apply a 1-day wait until he arrives on Monday.

 

Regards,

Diego P.

DavidKangni
Community Advisor
Community Advisor
August 13, 2024

@dparraabad 

Take a look here. I explained this approach.

Thanks,

David

David Kangni
Sukrity_Wadhwa
Community Manager
Community Manager
October 22, 2024

Hi @dparraabad,

Were you able to resolve this query on your own or do you still need help here? Do let us know.

Thanks!

Sukrity Wadhwa