Custom Valiation

Hi,

I want to add my custom validation code in tool generated APIs. Can you please provide the steps to achieve the same.
Example : I want to validate email property of my model. If email already exists, I should not create a new record and display a message saying “Email already exists”.

Hi @anjul_mishra,

While you can perform validation in the OnXXXCreated partial method there currently isn’t a way to return a result to the end user. We however have a task to add support for that. It will probably be done next week.

Regards,
Atanas

Hi,

Is the support to return custom error message on validation provided by the tool?
If yes, please provide the link/steps to implement.

Thanks

You can check the custom server validation section from the Radzen documentation.