Business Rules query

DanaWood
Tera Contributor

Morning,

 

I am new to ServiceNow and need help with Business Rules. Can I create before query based on catalog category?

if so how? 

 

\

5 REPLIES 5

PritamG
Mega Guru
 

yes, you can create a Before QueryBusiness Rule based on the catalog category.

firstly create a new Business Rule 

Table: sc_cat_item (or relevant table).

When: Before. 

Advanced: Check the "Advanced" option.

Add a script:

 

if (current.category == 'your_category_sys_id') {
    gs.addInfoMessage('Query modified for specific category');
}