Incident Event trigger based on Assigned

Srinivas Chinna
Tera Contributor

send notification when assigned is not updated the incident form before 18:00PM.

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Srinivas Chinna 

your requirement is not clear

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Runjay Patel
Giga Sage

Hi @Srinivas Chinna ,

 

Follow below steps.

  1. Create a schedule job and use below script.

 

var grIncident = new GlideRecord('incident');
grIncident.addQuery('state', '!=', '6'); // Exclude resolved or closed incidents
grIncident.addNullQuery('assigned_to'); // Find incidents where Assigned To is not updated
grIncident.query();

while (grIncident.next()) {
    // Trigger a custom event
    gs.eventQueue('incident.assigned_not_updated', grIncident, grIncident.opened_by, grIncident.assigned_to);
}

 

 

You can also do Using Flow Designer

  1. Create a Scheduled Flow in Flow Designer.
  2. Define the trigger to run daily at 6:00 PM.
  3. Add a condition to check incidents where Assigned To is null and state is not Closed.
  4. Add an action to send an email or notification to the appropriate recipients.

 

-------------------------------------------------------------------------

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

-------------------------------------------------------------------------