When you click on the save button, run it through a validation microflow to check if the category already exists in db.
Hi Valentin,
You can use a database retrieve to check if the category with the same name already exists.
So add a retrieve from database, check first, set as xpath something like [Name = $Category/Name]
Lets call the return value Category_Existing
If this retrieve returns empty, you know it does not exist yet. If it is not empty, it exists already.
The decision would look like this: $Category_Existing = empty
The true-flow of the decision will continue to commit the new category, while the false flow will show a message to the user.
Hi Valentin,
I think you will want to follow a standard Validation microflow set-up