AnsweredAssumed Answered

Unique Email Address for contacts

Question asked by Diogo Cabral on Jun 8, 2015
Latest reply on Jun 9, 2015 by paperless
Hi everyone,

Is there a way I can have Sugar ensure that each contact has a single, unique, email ID? I need this to work whether the contact is saved from the interface/sidecar, or whether it happens via API. 

The best I've come up with so far is to have a before_save logic hook checking if there's another contact using this address, but I'd like to have something more consistent in terms of exceptions (how do I get back from the logic hook to the sidecar form in an orderly fashion)?

Thanks very much,