The CreatorCon Call for Content is officially open! Get started here.

Business Rule for multiple tables.

Harsha6
Giga Contributor

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!

 

13 REPLIES 13

Sumanth16
Kilo Patron

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

Thanks for taking time to comment

poyntzj
Kilo Sage

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.

 

 

Harsha6
Giga Contributor

Thanks for taking time to respond.