+ Start a Discussion
Mignu FMignu F 

Enforce unique field at a record type level

Hi,
I have defined two record types (record type 1 and 2) in my salesforce instance to represent two separate business units.  On the contact object I have defined a unqiue field to make sure that the same contact cannot be inserted twice for a record type.  The problem I am running into is that if a contact exists with recrod type and I try to insert the same contact with record type 2, I get the error "duplicate values on record".  Is there a way to enforce the unqiueness of a field per recrod type?
venkat-Dvenkat-D
 You have to include Recordtype Name as one of parameters in criteria. What is your current critetia for uniqueness.