I have a simple web-to-lead that works as expected. What I want to do is send a copy of the form details if the lead meets a certain condition. Condition being:
LeadSource = "example"
.
The email that I want to send a copy of the lead to is a user on the account. I have created an email template that I would like it to use so that certain fields can be omitted in the copy. That looks like so:
{!Lead.Id}
NEW LEAD ....
First Name: {!Lead.FirstName}
Last Name: {!Lead.LastName}
Email: {!Lead.Email}
Phone: {!Lead.Phone}
Company: {!Lead.Company}
Country: {!Lead.Country}
State: {!Lead.State}
City: {!Lead.City}
Lead Source: {!Lead.LeadSource}
Inquiry Details: {!Lead.Inquiry_Details__c}
This is how I want the email to be formatted when the new lead is created (from web-to-lead). I don't know much about how to get this to work in salesforce, but I started using an email alert
. This email alert uses the template created above. The recipient-type
is specified as the user I want the email copy to go to. Let's say it's [email protected]
.
Next, I tried to trigger that email alert using a flow
. The flow
is structured as so:
START
Record-Triggered Flow
- Object: Lead
- Trigger: A record is created
- Conditions: 1 (condition:
LeadSource = "example"
) - Optimize for: Actions and Related Records
EMAIL ALERT
- alert created (previously mentioned)
- Record ID: {!$Record.Id}
END
Whenever I run a test and chose a lead to test it on it shows completed
with no errors. However, I am not getting the email sent to my inbox.
Summary:
- New lead created from web-to-lead with
LeadSource = "example"
- Send a copy of that lead via email using a desired email template to a specific email address.
- Also, maintain the lead in the original
lead
area on SF.
-- I don't have much preference as to how this is accomplished, as long as it works.
user on the account
mean? are we talking about theLead.Owner
?Recipient Type
? That is set touser
and the user is listed in theAvailable Recipients
. So yes, perhaps that may be the same as theLead.Owner
.setup | deliverability | All emails
; you can also turn on debug log and you can see if your flow started and executed the email alert