Skip to main content
Jul 7, 2025 11:30 PM UTC
Solved

5 days wait on journey

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.
Pulkit_Jain_
Pulkit_Jain_Accepted solution
Adobe Employee
Jul 8, 2025 7:06 AM UTC

@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
Jul 8, 2025 3:50 AM UTC

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))))

 

Translate
Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
Jul 8, 2025 7:06 AM UTC

@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  

Translate
Sukrity_Wadhwa
Level 4
Jul 17, 2025 12:44 PM UTC

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!

Translate
Sukrity Wadhwa