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
IoniaCorpIoniaCorp 

Cancel the Lead INSERT

I want to cancel the Lead INSERT event in case there is another Lead from the same source(e.g. with same e-mail address) and update the old Lead with the required information. In other words I want to create a new Lead only in case there is not existing one in the system from the same source.

I tried with the combinations of update, insert triggers but got  errors. Is there a functionality of Instead of Trigger in salesforce?

Any suggestions will be appreciated.


Jerry HongJerry Hong

you can just use trigger with some logic of restriction