Duplication Control

0
how to do duplication control in microflows for a database
asked
1 answers
1

If you mean: how to keep an entity’s attribute unique using microflows, than you will have to add two activities: 1) a retrieve from database and 2) count the number of results. This each time before you commit your entity.

However the better way to do it, is by setting the validation of the attribute in the domainmodel. If it concerns more than one attribute, add a ‘before commit’-event to the entity.

answered