How to stop for creating incident with closed state or where to identify creating incident with clos

AJAYKUMAR G
Tera Contributor

How to stop for creating incident with closed state or where to identify creating incident with closed state.

how to write business rule do not creating incident closed state. Please help me.

1 ACCEPTED SOLUTION

Hi @AJAYKUMAR G,

 

Have you look at my comments? Let me know if have any queries.

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

View solution in original post

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi @AJAYKUMAR G,

 

How incidents are getting created? May be you can check the business rules, inbound action rules etc.

 

To avoid creation of Incidents with closed state. You need to write before insert business rule.

 

Condition:

current.isNewRecord() && current.state == 'closed'

 

Scripts:

gs.addErrorMesssage("Add error message here");

current.setAbortAction(true);

 

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

No. workflow cancel but incident created.

Hi @AJAYKUMAR G,

 

Can you explain how incidents are getting created?

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

Hi @AJAYKUMAR G,

 

Have you look at my comments? Let me know if have any queries.

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow