You need to sign in to do that
Don't have an account?
Ty Whitfield
Validator that checks if multiple contacts have the same entry on a field
I have a picklist field on the Contact record but I only want one person from each account to have one of the picklist values selected in this case "Admin User". The other picklist values may have mulitple contacts with the same item selected, just the Admin user needs to be unique.
I'm assuming that I would have to write a trigger on Contact edit but how do I display the error to the user about to update the record?
I'm assuming that I would have to write a trigger on Contact edit but how do I display the error to the user about to update the record?
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_exceptions.htm