Business Rule for multiple tables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 10:25 AM
Hi,
Is it possible to have a one business rule and enforce it on multiple tables?, if possible can any one help me with, how this can be achieved. Any help is appreciated.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 11:36 AM
Hi Aman,
You can do that.write BR in parent table and access child table using GlideRecord and add the condition in addQuery and you need to create before insert/update business rules to set value in parent record.
I have created one "before insert/update" business rule to sum amount in child records(HR task) and populated that sum into parent record(HR case).
Thanks,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 01:09 PM
Thanks for taking time to comment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 12:58 PM
As others have said it is easy if the tables are extensions - just put it onto the parent table.
If however they are not and are indeed unrelated tables and you only want to maintain one set of the code you can create your BR on your tables, but simply make it calla Script Include and put the shared code in there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 01:10 PM
Thanks for taking time to respond.