- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2025 05:40 AM - edited 06-30-2025 05:47 AM
Today we are using a Filter condition like this:
The groups can change often, which needs an update to the Business rule, and I want to avoid that.
Is there way to use a script or system property or anything in the 'Filter conditions' or under the 'Condition' field under advanced section and make it dynamic?
PS - I know that can achieve it by writing code in script field, I dont want run the script. I want to run the script only when the condition matches. ie if assignment group is one of (A or B or C) etc
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2025 06:20 AM
you can check the property value in Advanced condition field of business rule
Filter conditions are for more simpler conditions and advanced condition can handle scripting.
your advanced condition will look like this
system property will hold comma separated sysIds of the 3 groups
gs.getProperty('propertyName').split(',').indexOf(current.assignment_group.sys_id.toString()) > -1
You can also try to use Dynamic filter options, I haven't tested this
Create a dynamic filter option
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2025 06:20 AM
you can check the property value in Advanced condition field of business rule
Filter conditions are for more simpler conditions and advanced condition can handle scripting.
your advanced condition will look like this
system property will hold comma separated sysIds of the 3 groups
gs.getProperty('propertyName').split(',').indexOf(current.assignment_group.sys_id.toString()) > -1
You can also try to use Dynamic filter options, I haven't tested this
Create a dynamic filter option
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2025 12:03 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader