You need to sign in to do that
Don't have an account?
shobana shobana 1
Trigger to throw an error message for duplicate email id
In Lead and contact object i have a trigger which check if there is any duplicate email Id. If it has duplicate it throw an error "Provided email id already exist for another record". This scenario is working fine.
But in the lead conversion if i try to merge twith exiting account and contact record its throwing an error like "Error: Validation error on Contact: Error:Provided email id already exist for another record"
But in the lead conversion if i try to merge twith exiting account and contact record its throwing an error like "Error: Validation error on Contact: Error:Provided email id already exist for another record"
Can you share your code, so can check and suggest.
Thank you for your reply. My code is
I think error is because of the trigger in contact .
Trigger is working correctly as conditions passed in it. Deactivate trigger and try merging it will work.
As your trigger is working on before Update it will find the Duplicate Emails Id according to your trigger.
Thank you for your reply. If i deactivate the trigger its working. So what would be the solution to rectify the isssue.
Use masterRecordId =: null in the Query. Which will return Non Merging Records.