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
Chirag MehtaChirag Mehta 

Lead Duplication Code

I was going through a classy presentation on Apex and in that i found something for chekcing Lead Duplicates.


If you know abt Apex , you yourself can say that its very easy now to check lead duplicates at the time of creation itself.

So lets try ..if anyone had already done ....code pls






adamgadamg
We can share the code, but since you can't run it anywhere (yet), it wouldn't do much good! Would it help if we shared it anyway?
Mike LeachMike Leach
I saw this demonstrated at Dreamforce and it was very impressive. It will be the first bit of Apex code I download and use in our org :-)
Chirag MehtaChirag Mehta
Hey I m too waiting for that code

I have a image of that code and want to know how to define triggers in this winter release

I cant find any option in SFDC beta 7 for the same


Message Edited by Chirag Mehta on 12-04-2006 08:56 PM

SuperfellSuperfell
Apex is not part of the winter release, there will be a beta program starting first half of next year.
Chirag MehtaChirag Mehta
Ohooo thanx for the info

Can u tell me the month when the apex thing will start

DevAngelDevAngel
One of the months after Decemeber.

:smileyhappy:
MightyMouse.ax268MightyMouse.ax268
Since it's now one of those months after December, can someone please post the code?

It'll do us lots of good now!
Chirag MehtaChirag Mehta
Already in two replies above i have posted the code ,but did u got any apex env enabled in ur SFDC instance to test it then do reply


Me to waiting eagerly to write triggers
CaptainObviousCaptainObvious
I finally gave it a go....
 
It works great! I can't wait for Apex to be available on our production site.
 
If you're using the code from the presentation:
 
System.ValidationException is a custom exception (meaning you'll have to write your own code for it).
 
...or you could just use something like:
 
 Trigger.new.Email.addError('Lead is a duplicate: Email matches an existing record');
 
Chirag MehtaChirag Mehta

IT worked for me tooo..

Ths really sounds grt ..as if we define how salesforce will behave ....

 

MuMu
hello there,

i do need this too. i can not find this trigger screen in my unlimited edition!
Chirag MehtaChirag Mehta
Convert ur developer account into Apex enabled using following link
http://wiki.apexdevnet.com/apexcodepreview/register.html
MuMu
thanks chirag.