How to use Business Rule to prevent the creation of REQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 05:42 PM
Hello, I have a requirement to create a business rule which prevents the creation of REQ and RITM if one of the variables from a Catalog Item is invalid. I was able to prevent the creation of RITM but it is still creating the REQ.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 07:01 PM
As per the ServiceNow best practices/standards this is not a good idea and not a valid method.
But to achieve your requirements you can do anything you know 🙂 😛
I would suggest go with the client level validations that's the right way as per your scenario!
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 11:20 PM
Sorry, client-side validation is not enough. I can still put invalid data in a Catalog Item upon submitting a request 😓
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 11:22 PM
@Gab ,
You can make the variables readOnly on "RITM" and "Task", just to avoid those scenarios 🙂
After submission of cat_item, RITM/task is the only place where user can modify data.
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 11:24 PM
My variables are user's input like selectbox and textarea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 04:26 AM
It is possible, just make a script include with a method that check the table "sc_request", and than call the method on your client side.