in business rules what the difference filter condition and condition field

Gangadhar540-
Tera Contributor

in business rules what the difference filter condition and in advanced condition field

2 ACCEPTED SOLUTIONS

Shubham_Jain
Mega Sage

@Gangadhar540- 

 

Filter Condition

  • Purpose: Used to specify criteria that records must meet to be included in a list or report.
  • Example: If you want to display all incidents with a priority of "High," you would set a filter condition on the incident list to show only records where priority = High.

Condition Field

  • Purpose: Used within business rules to determine when the rule should execute.
  • Example: In a business rule, you might set a condition field to trigger the rule only when the state of an incident changes to "Resolved."

 

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain


View solution in original post

GopikaP
Mega Sage

Hi @Gangadhar540- 

  • Filter Conditions: Simple no code filter conditions. These conditions must return true for the Business Rule to execute.
  • Condition field:  to write JavaScript to specify when the Business Rule script should execute.

Putting in simple words: Filter conditions are meant to determine whether to run the Business Rule and Condition filed is the next layer that determines whether to run the script written in the 'Script' field of Business Rule (The BR script logic only executes when the Condition field returns true. If the Condition field is empty, the field returns true)

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Gangadhar540- 

in filter conditions you can directly access the fields and give the conditions, mostly used for simple conditions

example: Name IS Abel

In advanced condition field -> you can use scripting, access current and previous object, invoke script include function, check role etc

more details below

Business Rules Tutorial 

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

Shubham_Jain
Mega Sage

@Gangadhar540- 

 

Filter Condition

  • Purpose: Used to specify criteria that records must meet to be included in a list or report.
  • Example: If you want to display all incidents with a priority of "High," you would set a filter condition on the incident list to show only records where priority = High.

Condition Field

  • Purpose: Used within business rules to determine when the rule should execute.
  • Example: In a business rule, you might set a condition field to trigger the rule only when the state of an incident changes to "Resolved."

 

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain


GopikaP
Mega Sage

Hi @Gangadhar540- 

  • Filter Conditions: Simple no code filter conditions. These conditions must return true for the Business Rule to execute.
  • Condition field:  to write JavaScript to specify when the Business Rule script should execute.

Putting in simple words: Filter conditions are meant to determine whether to run the Business Rule and Condition filed is the next layer that determines whether to run the script written in the 'Script' field of Business Rule (The BR script logic only executes when the Condition field returns true. If the Condition field is empty, the field returns true)