+ Start a Discussion
hector.asp2hector.asp2 

Warn if trigger finds duplicate record

Hi,

 

I have made a trigger for Account object called after insert. I need to warn the user that a duplicate record already exists when user enters any new Account record which is duplicate. How can this be done?

 

Thanks

Hector

hisrinuhisrinu

No you can't warn user with the help of triggers

 

However you can show an error message and ask user to select yes for an checkbox if user wanted to have the duplicate and in your trigger you should not fire your logic if that checkbox is true

Thanks
Srini