Schedule entry in the Schedules

Sjoshi2
Mega Contributor

Does the 'When' field in cmn_schedule_span table actually works if we set the schedule for particular hours? As we are trying to send a notification of a newly created incident if incident is created within 2 hours and on Fri-Sat- Sun. How would we do it? Out of DateTime field does Time field work? If yes then how?

2 REPLIES 2

aswinsiddaling2
Kilo Guru

Everything works.



You need to create a schedule entry for Friday - Saturday - Sunday and pass the current incident created time to check within this schedule using DurationCalculator and if its returns any value apart from 0 then you know that the incident was created within this schedule entry and can trigger the notification.



You can look at Schedule entry fields and Calculating a simple duration



Let me know if you have any questions


Thank you.. I will apply this..