Changing dynamically 'when to run' condition in Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023 01:24 PM
Hello All,
I have a particular requirement where 'when to run' filter condition(one that user sets statically while configuring the business rules) in business rules, needs to change dynamically.
Basically looking a way at dynamically altering the 'when to run' filter to condition.
Thank you,
Mahesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023 02:03 PM
I'm not sure if dynamically changing this is possible, but you can leave it blank and wrap your script in whatever condition you need, so the script will only execute if it is met - which is basically the same thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023 08:53 PM
Not possible in the when to run section. But like brad said you can wrap your script inside your condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023 08:59 PM
but why?
you can use business rule script to handle different conditions and have your logic defined there
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023 11:10 PM
We have found an alternative. Kindly mark this as done.
Thanks you all for taking out your time suggest solutions.