Difference between Before BR and Before query BR?

AjKadam
Tera Contributor

How we can differentiate when to use the Before Query BR and Before BR?

Exactly what are the real-time scenarios that we can decide in this type of situation we have to go with Before Query BR so it won't create performance issues to an instance or we can maintain the standard

1 ACCEPTED SOLUTION

Megha Padale
Giga Guru

Hi,

Adding to all, Before a record is saved to the database.Business rules execute after form submission and before the record update in the database. Example: Calculation of priority based on impact and urgency

imgbr9.PNG

Before Query Before query Business Rules execute before a query is sent to the database. When a user is not authorized to see all records in a list, the “Number of row removed by security constraints” message appears. Before query Business Rules act like ACL and prevents users from seeing certain records. When access is controlled through a before query Business Rule ,the “Number of row removed by security constraints” message is not displayed and the user does not know access is restricted.

br10.PNG

 

check below links:

https://www.learnnowlab.com/Business-Rules/

https://www.servicenowguru.com/scripting/business-rules-scripting/controlling-record-access-before-q...

If my answer helped you in any way, mark answer as helpfula nd correct.

Thanks and regards,

Megha.

View solution in original post

6 REPLIES 6

Megha Padale
Giga Guru

Hi,

Adding to all, Before a record is saved to the database.Business rules execute after form submission and before the record update in the database. Example: Calculation of priority based on impact and urgency

imgbr9.PNG

Before Query Before query Business Rules execute before a query is sent to the database. When a user is not authorized to see all records in a list, the “Number of row removed by security constraints” message appears. Before query Business Rules act like ACL and prevents users from seeing certain records. When access is controlled through a before query Business Rule ,the “Number of row removed by security constraints” message is not displayed and the user does not know access is restricted.

br10.PNG

 

check below links:

https://www.learnnowlab.com/Business-Rules/

https://www.servicenowguru.com/scripting/business-rules-scripting/controlling-record-access-before-q...

If my answer helped you in any way, mark answer as helpfula nd correct.

Thanks and regards,

Megha.

Runjay Patel
Giga Sage

Check out this video, it will clear all your doubts and help you to understand Business Rule queries in details.

Link: https://www.youtube.com/watch?v=hLottNnk21U&ab_channel=ServiceNowHelpdesk

It help you to understand below points.

  • Scenario based business rule uses
  • Best business use cases for all types of business rules
  • Current .update in before business rule
  • Difference between Before BR and Before query BR?
  • Where can we use query business rule?
  • All type of business rule with real world scenario
    • Before
    • After
    • Async
    • Display

 

Please mark reply as Helpful/Correct, if applicable. Thanks!!