5 days wait on journey | Community
Skip to main content
New Participant
July 7, 2025
Solved

5 days wait on journey

  • July 7, 2025
  • 3 replies
  • 375 views

Hello I need to apply the 5 days wait but is not working with AddOn, how can it work? 

 

toDateTimeOnly(@event{}) - 5 days, How can I modify the json?

Best answer by Pulkit_Jain_

@antonellaca1 

You can use the addDays function[0] and modify the JSON as mentioned below:

toDateTimeOnly(addDays(@event{Event.<timestampField>}, 5))
{
  "type": "wait",
  "waitFor": {
    "expression": "toDateTimeOnly(addDays(@event{Event.eventFieldName}, 5))"
  }
}

 

[0] - https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalization/functions/dates#add-days  

3 replies

Sukrity_Wadhwa
Employee
July 17, 2025

Hi @antonellaca1,

Were you able to resolve this query with the help of the provided solutions, or do you still need further assistance? Please let us know. If any of the answers were helpful in moving you closer to a resolution, even partially, we encourage you to mark the one that helped the most as the 'Correct Reply.'

Thank you!

Sukrity Wadhwa
Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
July 8, 2025

@antonellaca1 

You can use the addDays function[0] and modify the JSON as mentioned below:

toDateTimeOnly(addDays(@event{Event.<timestampField>}, 5))
{
  "type": "wait",
  "waitFor": {
    "expression": "toDateTimeOnly(addDays(@event{Event.eventFieldName}, 5))"
  }
}

 

[0] - https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalization/functions/dates#add-days  

Mohan_Dugganab
Employee
July 8, 2025

You can use the below expression assuming you have a date time field in the event payload which is a future date (in the custom wait) in journey canvas

toDateTimeOnly(toDateTime(((toInteger(<your_date_time_field>))) - (toInteger(5*24*60*60*1000))))