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?
Solved! Go to Solution.
Views
Replies
Total Likes
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))" } }
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))))
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))" } }
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!
Views
Replies
Total Likes