Run a business rule when a related list changes

tbisca
Tera Contributor

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

2 REPLIES 2

Ashish Kumar Ag
Kilo Guru

I am not sure whether it will work for BR, but for UI action RP.isRelatedList() works fine. You can give a try.


Anurag Tripathi
Mega Patron
Mega Patron

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


-Anurag