AJO: Make a profile wait till particular day for execution | Community
Skip to main content
Level 2
June 3, 2025
Question

AJO: Make a profile wait till particular day for execution

  • June 3, 2025
  • 3 replies
  • 1180 views

Folks,

 

I am checking one use-case where I want the profiles to wait exactly 3 days before their product delivery and trigger a communication from AJO.

I tried using setDays() function like below,

setDays(toDateTimeOnly(@event{xxx.bookingdetails.deliveryDate}), -3)

If the delivery date is June 15th then the profile should wait till June 12th and proceed to further step in the journey. This way it will be dynamic for all the profiles.

 

Any idea on this ? whether this is feasible through journey?

 

Thanks in Advance!

 

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

3 replies

Level 4
June 3, 2025

Hello @ikmo7 ,

 

Instead of setDays () function use addDays() function like 
addDays(toDateTime(@event{xxx.bookingdetails.deliveryDate}), -3),
this will bring june12th and proceed to further step in the journey.
FYI
https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalization/functions/dates#add-days
setDays function is used to set the day of the month for the given date-time and i believe it wont be negative value with -3.
correct me if am wrong.

 

Thanks

AJODev

Ikmo7Author
Level 2
June 4, 2025

We can't use addDays function in the condition. This is a great feature but not available in wait conditions.

Level 4
June 4, 2025

Got it, @ikmo7 Have you tried like this 
toDateTime(@event{xxx.bookingdetails.deliveryDate}) == nowWithDelta(3, "days")
The delivery date is future date right so we are comparing the value like today+3 days.
example : if the delivery date is 2025-06-07 then nowWithDelta function will check today's date +3 days = 2025-06-07.
Correct me if am wrong 

Thanks

AJODev

Adobe Employee
June 3, 2025

Rather than the date logic here, why not create a segment qualification audience where you have the purchase event exist and is 3 days after?

 

Ikmo7Author
Level 2
June 4, 2025

We do have that in place but like this I have multiple conditions in the same journey. So, we need adjust the wait days accordingly with segment logic and the evaluation as well. 

It would be better using dynamic wait steps in the journey for all the profiles.  

SatheeskannaK
Community Advisor
Community Advisor
June 3, 2025
Ikmo7Author
Level 2
June 4, 2025

@satheeskannak - Thanks for sharing this. But I don't see the correct logic used in those threads. Can you help me with that if possible ?

Level 2
July 16, 2025

Hi @ikmo7 
We have a similar issue, trying to understand if you had any solution for this to do the custom Wait Activity?

Thanks