- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2017 07:37 AM
when an incident is set to resolved or closed, active field should become false
please help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 12:44 PM
Hi Narahari,
1. Create a before BR on incident which looks like as:
2. In Actions tab, set active to false
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 12:36 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 12:43 PM
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:
TaskStateUtil - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 12:44 PM
Hi Narahari,
1. Create a before BR on incident which looks like as:
2. In Actions tab, set active to false
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