Can anyone please tell how can we restrict business rule for specific table.

Sanket Kutwal
Tera Expert

 

When you extend a table (Table B extending Table A), the business rules from the parent table (Table A) are inherited by the child table (Table B) by default. How to exclude a specific business rule from running on Table B.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Sanket Kutwal 

add this in the BR condition of parent table

current.sys_class_name != 'childTableName'

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Sanket Kutwal 

add this in the BR condition of parent table

current.sys_class_name != 'childTableName'

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I appreciate your help, Ankur! The solution worked

Netaji Kadam
Tera Contributor

hi sanket kutwal,

 

Some before query business rules may limit access to certain tables, such as by filtering the records a user can view. For example, if you extend the Incident table, you can filter the list of Incidents to show only the parent Incident table by adding the condition sys_class_name = 'incident'in a before query business rule.

 

regards 

Netaji Kadam

 

Hey thank you, I got the exact solution for this, but I'll definitely try your solution as a alternative way!