dipak_thakor
ServiceNow Employee
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
3 hours ago
As part of Technical governance, it is important to understand the filter conditions vs advanced conditions, so we can avoid any common mistakes.In a ServiceNow business rule, the Filter Conditions in the When to Run section function as the trigger for the execution of the business rule. Meanwhile, the Advanced Conditions, located in the Condition field of the Advanced tab, serve as an additional JavaScript-based condition that must also be satisfied for the script of the business rule to execute. This ensures that more intricate logic is applied only when both sets of conditions are fulfilled.
When to Run Filter Conditions
- Purpose: To act as the initial gatekeeper or trigger for the business rule.
- Format: Uses a user-friendly, no-code interface to define conditions based on field values.
- Execution: The business rule's script will only be considered for execution if these filter conditions are met.
Advanced Conditions
- Purpose: To add more complex, script-based criteria that the business rule script must meet in addition to the Filter Conditions.
- Format: A JavaScript expression that evaluates to
true
orfalse
. - Execution: The business rule script runs only when the Filter Conditions are met and this advanced condition also evaluates to
true
.
Key Differences
-
Complexity:Filter Conditions are for simple, declarative criteria, while Advanced Conditions allow for intricate, dynamic JavaScript logic.
-
Order:The Filter Conditions in the When to Run section are evaluated first. If they are met, then the Advanced Condition is evaluated.
-
Requirement:You must satisfy both the Filter Conditions and the Advanced Condition for the business rule's script to execute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.