I need to trigger a notification after 10 minutes of incident creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 06:55 AM
Hello Team,
I have a requirement to trigger a notification after 10 minutes of incident creation and I heard about gs.eventqueueSchedule however I am unable to fulfil my requirement by using this method:
1. I am following below steps
(a) Registered event in event registry
(b) Created after update BR on incident table and wrote this code :
(function executeRule(current, previous /*null when async*/) {
var gdtEventProcess= new GlideDateTime(gs.nowDateTime());
gdtEventProcess.addSeconds(10);
gs.eventQueueScheduled("Demo_trigger_event_after_10mins_of_creat", current, current.caller_id, "priya.dec17942@gmail.com", gdtEventProcess);
})(current, previous); // I may be using parameter incorrectly but it's not working
(c) Created notification in which I am using "Event is fired"
Please assist me with this requirement, thank you in advance.