Skip to main content
dparraabad
Level 2
août 12, 2024 11:32 PM UTC
Question

Day of the week through the Expressions section in AJO

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.

Ce sujet a été fermé aux réponses.

7 commentaires

Pradeep_Kumar_Srivastav
Community Advisor
Community Advisor
août 13, 2024 2:52 AM UTC

Hi @dparraabad ,

 

You can use something like below

 

 

Traduire
dparraabad
Level 2
août 13, 2024 1:25 PM UTC

Hi Kumar, 

 

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

 

 

Regards,

Diego P.

Traduire
Mohan_Dugganab
Adobe Employee
Adobe Employee
août 13, 2024 3:03 AM UTC
dparraabad
Level 2
août 13, 2024 1:19 PM UTC

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.

Traduire
DavidKangni
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
août 13, 2024 1:48 PM UTC

@dparraabad 

Take a look here. I explained this approach.

Thanks,

David

Traduire
David Kangni
Sukrity_Wadhwa
Level 4
oct. 22, 2024 5:39 AM UTC

Hi @dparraabad,

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

Thanks!

Traduire
Sukrity Wadhwa