AnsweredAssumed Answered

[URGENT] Throw a custom response from Events

Question asked by kkaus on Nov 7, 2017
Latest reply on Nov 14, 2017 by kkaus

If we are putting a custom validation that will be defined by us and for that, I am using the Early Event. Here is my scenario  

 

It is not the real scenario but my scenario is very similar to this - 

Suppose if there is a POST request to a table and I want to check that,

 

if newRow.name already exists in the table then return a JSON response to the user that it is already there with a custom statusCode + meaningful message into that JSON.

 

 

Is this possible using reactive logic? As I have to check this when a user is going to create a record for that table.

 

Or any other alternative for this?

 

Please help ASAP. Thanks in advance.

 

cc -  tarma06

Outcomes