Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 02:37 AM
Hi @shubhamverm6594 ,
You can create a BR rule and fire event to send notification. Follow below steps.
- Create an event based notification.
- Create a after update BR and use below logic.
if (current.password != previous.password ||
current.auth_key != previous.auth_key ||
current.certificate != previous.certificate) {
// Notify the Discovery Admin
gs.eventQueue(‘event.name’, current, parm1, parm2);
// Create a task for tracking
var task = new GlideRecord('task'); // Use 'task' or a specific table for tracking
task.initialize();
task.short_description = "Verify updated credential: " + current.name;
task.description = "The credential '" + current.name + "' was updated. Verify that Discovery is working correctly with the new details.";
task.assigned_to = "discovery_admin"; // Replace with appropriate user or group
task.insert();
}
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------