request closure- What does this Business Rule do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 09:33 AM
Hello All,
We have a customization on Catalog Task table i.e., we have added Cancelled State and when the Catalog task gets cancelled, then the related Request Item will be cancelled & it's corresponding Request will be marked as Closed Incomplete. Scripts written for that functionality are working fine, but we have observed that OOTB BR(request closure) is triggering on Request table, and changing the Status of it's Catalog task to Closed Incomplete(We could see the status transitions in the Activity).
I have disabled the Business Rule request closure and seems like our custom functionality is working fine.
Nonetheless, Could some one let us know how that scripts works(Script of BR:var request = new SNC.Request(current);if (request) request.cancelRelatedRecords();) and what is the impact of disabling that BR?
Thanks
J
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 10:08 AM
Hi Janrameez,
Business Rule request closure, is to close all the request related records. If RITM, catalog task and approval records created for requests are open and request gets closed incomplete, then ritm and catalog should get closed as well otherwise those will sits in open state forever.
You can try this.
Thanks.
PS: Hit like, Helpful and Endorse, if it answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 09:44 PM
Hello Nisha,
Can I disable that BR and have my custom functionality instead?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 10:05 PM
Hi,
As Nisha mentioned it will close all the related tasks on condition if state changes to closed_cancelled or closed_incomplete,
I think, as long as your customized BR works as per your all Business use case after disabling the OOB BR then there shouldn't be any impact on making this inactive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 10:06 PM
Hi Janrameez,
I dont think deactivating Request Closure, and implementing your custom functionality would affect anything in adverse way.
Following links would help you to understand this better-
ServiceNow KB: Business rule performing incorrect check against child records (KB0551976)
Business Rules in the Base System - ServiceNow Wiki
Thanks & Regards,
Astha Chaubey