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
philbophilbo 

Web-to-Lead and "Salesforce Lead Alert" e-mail

Hey,

We have an org whose Lead object has Apex trigger code attached to it, that converts a new/updated Lead to an Account and Contact under certain circumstances (which boil down to:  are all the necessary fields properly filled in?).  This is fully built out and works well.   Also in this org we have Web-to-Lead set up, with the intention that a properly filled-in Web Lead form will cause a Lead to be created and immediately converted upon initial save, creating an Account and a Contact on the system.  Again this works well - but with one small wrinkle. 

In cases where a Web-created Lead is inserted and auto-converts, the default Lead owner gets an e-mail titled "Salesforce Lead Alert", containing the following:

Alert: Salesforce experienced the following problem creating the lead below:

Reason: Your Lead could not be processed.

...and then a whole bunch of field Ids and their values.


I can only surmise that the auto-conversion of the Lead is confusing the Web-to-Lead process and causing this e-mail to be sent out.  Can anyone corroborate this?  Is there any workaround?  Is there a way to suppress these e-mails?  Not so much because they're annoying and misleading, but more because now there's client data sitting in those e-mails, that is flying around the Internet in cleartext.

Thanks