Run a business rule when a related list changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2015 01:49 PM
I need some advise on where to start. I would like a script, most likely a business rule, to run which modifies a field on the incident table when a related list is changed.
I want to maintain a comma separated list of Requested by for all related incidents to a Major Incident (Outage). When an incident is added/removed, I want the field to be updated accordingly. How do I know when a related list gets updated.
Thanks for your help
Tim Bisca
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2015 03:06 AM
I am not sure whether it will work for BR, but for UI action RP.isRelatedList() works fine. You can give a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2015 04:16 AM
Hi Tim,
One simple approach is to identify how the incident is related to the record on related list(parent, task etc)
then you can just write a simple BR on the related list's original table, say change_request, that when current.parent.changes() && current.parent.sys_class_name=='incident'
This should work for you