How to use Business Rule to prevent the creation of REQ

Gab
Tera Expert

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. 

Gab_0-1681346660141.png

 

9 REPLIES 9

Prince Arora
Tera Sage
Tera Sage

@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 :

 

PrinceArora_0-1681347559186.png

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

 

Hi, thank you for your reply. But unfortunately, client-side validation is not an option. I have to do this in the server-side.

@Gab 

 

Nope this is not possible. you won't have access of variables in "sc_request"

 

@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?