Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

When Incident promoted to be Major Incident create Problem Automatically

Kishore47
Tera Contributor

When Incident promoted to be Major Incident create Problem Automatically

1 ACCEPTED SOLUTION

Deepak Shaerma
Mega Sage

Hi @Kishore47 

try using business rule for creating problem record when incident is promoted to major incident.

Table: Incident
When to Run: After Insert/update
Conditon : Major incident state is Accepted
Script: 

 if (current.major_incident_state == 'accepted' && previous.major_incident_state !=='accepted') {
           var problem = new GlideRecord('problem');
           problem.initialize();
           problem.short_description = current.short_description;
           problem.description = current.description;
           problem.insert(); // Create problem record
       }

try with this code.

Note: Please Mark this as Helpful and Accepted also if this solves your query. 
Thanks & Regards
Deepak Sharma

View solution in original post

5 REPLIES 5

@Kishore47  Thankyou for marking as helpful.