Users open RITM with different variable fields values by using API

RonAlmog
Tera Contributor

Hello, users on my instance are opening RITMs with REST API (POST), and some variables on that API request contain values that doesn't exist.

For example, I have a 'Multiple Choice' type of a variable, and the choices are 'A', 'B', 'C', the users are able to populate this variable field with a value of 'D'.

How can I restrict them from being able to do so?

 

Cheers

Ron

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@RonAlmog You can an onBefore Insert business rule on your table to check if the choices entered by the user are correct or not. If the values are not correct then you can use current.setAbortAction(true); to abort the creation of such records which do not have correct values.