Expand my Community achievements bar.

Join Adobe Journey Optimizer product experts for a live Ask Me Anything on October 15th at 8 AM PT about Expanding Your Mobile Reach with RCS & WhatsApp in AJO!
SOLVED

5 days wait on journey

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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/personalizatio...  

View solution in original post

3 Replies

Avatar

Employee Advisor

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

 

Avatar

Correct answer by
Employee Advisor

@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/personalizatio...  

Avatar

Administrator

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