Follow the steps below to create an email alert workflow in Salesforce to alert an administrator in real-time that a Lead has been submitted but was not able to auto-convert because it had a "fuzzy match" in the database in needs to be reviewed and processed manually. If you do not need a real-time notification but would rather get a weekly alert of all stuck leads to convert in a batch, please see our tutorial on creating a scheduled report of stuck leads instead.
Estimated time: 30 minutes
There are two parts to every automated workflow in Salesforce: 1) a workflow rule that determines when the action should happen, and 2) details of the actual action itself (field update, email alert, task, outbound message). These actions can happen immediately or scheduled at a particular time. If this is your first workflow, we're so excited to get you started with this one example and see what you can come up with from here! Workflows are one of the most useful tools in a Salesforce admin's arsenal. You can find lots more information in the Salesforce documentation here.
In this example, we're going to create an email alert workflow to notify a particular user that a Donation/Event/Petition lead has been flagged as having a potential match and needs manual review.
Step 1: Create your Admin Alert Email Template
- Log in to your Salesforce account and click the Setup link in the top right of the page. If you don't see this link, contact your Salesforce administrator.
- In the left menu under Administer, navigate to Communication Templates > Email Templates.
- Click the "New Template" button.
- We're going to create a simple email in this case because it's just an admin alert, so choose the "Text" option.
- Choose a Folder to store your email template in. We suggest creating one just for "Admin Alerts".
- Check the "Available For Use" checkbox to make sure this template is considered active and is available for selection later when setting up our workflow action.
- For the Template Name, enter text such as "Admin Alert: Fuzzy Match Lead". This will fill in the unique name also. Note that this is just for internal reference.
- Leave the encoding as-is.
- For the Description, enter text such as "This email template is used to notify admins when a Soapbox Engage lead could not be auto-converted because a fuzzy match was found and it needs manual review and processing."
- For the Subject line, enter something such as "Engage Alert: New Stuck Lead".
- For the Email Body, enter text such as:
Dear {!User.FirstName},
Uh oh! A Soapbox lead was not able to auto-convert because we found a fuzzy match in your Salesforce database. Please review the Lead details and convert manually using the link below.
Link: https://na17.salesforce.com/{!Lead.Id}
Why did this lead get stuck?
This lead was flagged because there is an existing contact in your database with the same First Name AND Last Name /OR/ First Name AND Email Address /OR/ Last Name AND Email Address.
What do I do to convert this stuck Lead?
Please find detailed instructions on how to review and convert stuck leads at http://support.picnet.net/entries/21749911-Responding-to-Leads-marked-as-Match-Review-Needed.
Thanks,
Soapbox Engage Bot - Click Save and move on to Step 2!
Step 2: Create an Email Alert
- Go to Setup > Email Alerts
- Click New Email Alert
- Description: Email alert when a Soapbox Lead is marked for review
- Unique Name: match_review_email_alert
- Object = Lead
- Email template = the one you created in Step 1
- Recipients: Select User, Role, or Email field based on your needs
- From Email Address = Current User’s email address
- Save
Step 3: Create a Flow
- Click the “New Flow” button
- Choose the Record-Triggered Flow
- Under “Select Object” choose Lead
- Trigger the Flow When: A record is created or updated
- Condition Requirements: All Conditions Are Met (AND)
- Field = Donation Match Review Needed
- Operator = Equals
- Value = True
- When = Every time a record is updated and meets the condition requirements
- Optimize the Flow for: Actions and Related Records
- Add Element: Action
- Type in and select “Email Alert”
- Select the Alert you created in Step 2
- Label: Send Match Review Email Alert
- Record ID: Triggering Lead > Lead ID
- Save