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 05:59 PM
@Gab ,
I believe the best way to handle your scenario is to use a onSubmit client script on the catalogue item itself. It would be best if you handled it while submitting the catalogue item.
Instead of dealing with it after the record is submitted, you can prevent the user from providing invalid inputs, and the Business Rule you wrote will be executed for all other Catalog items as well. This may not cause any problems, but it will add unwanted transactions.
Please check this question HERE just to get some more idea
Here is the sample what you can do :
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 06:01 PM
Hi, thank you for your reply. But unfortunately, client-side validation is not an option. I have to do this in the server-side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 06:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 06:54 PM
@Prince Arora , I'm thinking about deleting the REQ when the RITM fails as a work-around. Do you think that is a good idea?