Hello Min Chai,
at the moment I don’t think it is possible to enforce that the employee-number element be unique.
Please see this topic: Unique attribute values
At the moment, unique-ness is provided on the ino:docname attribute. Perhaps you could code a solution in which the value of employee-number is copied into ino:docname before inserting the document? If there is already a document with that ino:docname/employee-number, you will get an error from the Tamino Server on insert.
I hope that helps,
Trevor.
#API-Management#Tamino#webMethods