You need to sign in to do that
Don't have an account?
Manjusrinu
test classes for contact duplicate preventor
Hi
I need a test class for the below requirement
At the time of contact insertion/updation, check with the email field, if email already exist in database then throw an error .
my Trigger name:contactDuplicatePreventer
I need a test class for the below requirement
At the time of contact insertion/updation, check with the email field, if email already exist in database then throw an error .
my Trigger name:contactDuplicatePreventer
If you are checking the contact's email field while inserting or updating a contact in apex then you just need to insert or update the contact record in your test class like below:
Please mark it as best answer if you find it helpful.
Thanks
Sachin Arora