5 days wait on journey | Community
Skip to main content
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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
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

Mohan_Dugganab
Adobe Employee
Adobe 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))))

 

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe 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  

Sukrity_Wadhwa
Community Manager
Community Manager
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