Business Rules query
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 08:10 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 10:13 PM
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');
}