Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.

Day of the week through the Expressions section in AJO

Avatar

Level 3

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

7 Replies

Avatar

Community Advisor

Hi @dparraabad ,

 

You can use something like below

Pradeep_Kumar_Srivastav_0-1723517536551.png

 

 

Hi Kumar, 

 

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

 

dparraabad_0-1723555526122.png

 

Regards,

Diego P.

Avatar

Level 3

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.

Avatar

Community Advisor

@dparraabad 

Take a look here. I explained this approach.

Thanks,

David



David Kangni

Avatar

Level 3

Hi David,

 

Thanks for the prompt reply, is it possible to do it in 1 wait? It would be an if inside the custom wait, but I can't find a way to get the day of the week through the now() function. This is because we are reaching the node limit of the journey.

 

Regards,

Diego P.

Avatar

Administrator

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