when an incident is set to resolved or closed, active field should become false

bathulahari
Kilo Contributor

when an incident is set to resolved or closed, active field should become false

please help

1 ACCEPTED SOLUTION

him001
ServiceNow Employee
ServiceNow Employee

Hi Narahari,



1. Create a before BR on incident which looks like as:


Screen Shot 2017-08-29 at 1.08.55 AM.png



2. In Actions tab, set active to false



Screen Shot 2017-08-29 at 1.09.04 AM.png



3. Also please note that, you might want to undo this, if state is not one of 'Resolved / Closed', for this you can put another BR and reverse the condition.




Hope this helps.




Thanks,


Himanshu


View solution in original post

3 REPLIES 3

nishailame
ServiceNow Employee
ServiceNow Employee

There should be a Business rule to mark record closed.



If not then you can create one with condition state is resolved , closed



current.active = false;




 


Thanks.


PS: Hit like, Helpful, Correct, if it answers your question.


Patrick Schult2
Giga Guru

There are some attributes you can use on the Incident.State field to let the system automatically determine if the Incident is active or not.



Read more here:



https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/app-store/dev_portal/API_refere...  


TaskStateUtil - ServiceNow Wiki


him001
ServiceNow Employee
ServiceNow Employee

Hi Narahari,



1. Create a before BR on incident which looks like as:


Screen Shot 2017-08-29 at 1.08.55 AM.png



2. In Actions tab, set active to false



Screen Shot 2017-08-29 at 1.09.04 AM.png



3. Also please note that, you might want to undo this, if state is not one of 'Resolved / Closed', for this you can put another BR and reverse the condition.




Hope this helps.




Thanks,


Himanshu