Trigger email when no incident created in last 30 min
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2024 12:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2024 01:01 AM
I have created scheduled job and added below mentioned script:
var incident = new GlideRecord('incident');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2024 01:23 AM
You can set up an Event Registry and use eventQueue in your script to trigger notifications as needed.
eventQueue(String name, Object glideRecord, String parm1, String parm2, String queue)
Example:
gs.eventQueue("incident.commented", current, gs.getUserID(), gs.getUserName());
Alternatively, you can also consider using Flow Designer for a no-code approach with configuration alone.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2024 04:01 AM
I have tried with same registry but not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2024 05:08 AM
Can you please tell the use case scenario, who will receive this email, what is the purpose of creating incident that frequently?
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************