Users open RITM with different variable fields values by using API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 04:20 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 04:50 AM
@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.