You need to sign in to do that
Don't have an account?
Finding dupe emails...
My company has been using SF for a year+ now... but only stand alone. I'm now integreating lead generation and auto management (for those who purchase stuff and converting to opportunities) into our website when people create accounts. That's the easy part...
Once that's done, I'm want to import all our existing accounts in our site into SF as leads. For us, the uniqueness of a person is their email address. I suspect many of the people who've registered on our site are in our SF account, so I don't want to do a big import as it doesn't appear SF treats emails on records as unique. One bruteforce option is to walk through all 10,000+ user accounts on our site to see if they are already in SF and if not, create the lead. Not horrible as I can build a script that can do this overnight, but I'd prefer to avoid it...
I was hoping there was some way to make this easier and quicker... any ideas?
You add this as a Trigger for the Lead object (Setup > Customize > Leads > Triggers). Once you create this trigger and make it active, it will be respected when creating leads through the Web UI or the Web Services API.
Hope that helps,
Sati
All Answers
Take a look at this trigger example. It prevents new leads from being created if the email address already exists. You can then run mass imports against this and the leads without duplicate emails will be created.
There's also a test method here.
Hope that helps,
Sati
You add this as a Trigger for the Lead object (Setup > Customize > Leads > Triggers). Once you create this trigger and make it active, it will be respected when creating leads through the Web UI or the Web Services API.
Hope that helps,
Sati