function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ManjusrinuManjusrinu 

test class creation for checking with contact email field

Hi All,

I need to have a test class for the below task

At the time of contact insertion/updation, check with the email field, if email already exist in database then throw an error.

Can anyone help me how to figure out that ?