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:02 PM
Also, As I couldn't understand those statements in that BR...Can u please explain how do these lines work on the Catalog Task table and Request Item tables, without using a GlideRecord statement?
Script of BR:var request = new SNC.Request(current);if (request) request.cancelRelatedRecords();)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 10:26 PM
Thank you All. for your suggestion!