How to send notifications before due dates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 11:02 AM
Hi All,
I have a requirement where,
I have a date field value_date,and when I am working on a ticket that is in the "New status", notifications should be sent to requestor in below conditions:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 01:16 PM
Hi, I suspect that your issue is you are not filtering for a period between dates.
IE for fivedaysbefore() your filter is 'u_value_dateRELATIVEGT@dayofweek@ahead@5'
but this needs to capture a window using before\after so that you only trigger fivedaysbefore() once per record (when fivedaysbefore() is run daily).
EG
'start_dateRELATIVEGT@dayofweek@ahead@4^start_dateRELATIVELT@dayofweek@ahead@6'
/now/nav/ui/classic/params/target/change_request_list.do%3Fsysparm_query%3Dstart_dateRELATIVEGT%40dayofweek%40ahead%404%255Estart_dateRELATIVELT%40dayofweek%40ahead%406%26sysparm_first_row%3D1%26sysparm_view%3D
From experience, the best way to ensure that queries of this nature are correct.
is by configuring filters on a list view, ensure that you have sufficient sample data to cover all date variations.