Create an Automation with Flow Builder
Pleasing customers is very important at Ursa Major Solar. To make sure large accounts get all the attention they need, use Flow Builder to set up an automation that notifies product support specialist Ada Balewa of new cases for large accounts.
Build a Template and Alert
Before creating the automation, an email template and email alert need to be created. These will be referenced in the automation.
- Click the gear icon and select Service Setup.
- Enter
Classic Email Templates
in the Quick Find box and select Classic Email Templates.
- Click New Template.
- Select Text, and click Next.
- Fill in the details for the email template.
Field |
Value |
---|---|
Folder |
Unfiled Public Classic Email Templates |
Available for Use |
Select |
Email Template Name |
Notification of New Case for Large Account |
Template Unique Name |
Leave as default |
Encoding |
Leave as default |
Subject |
New Case: {!Account.Name} |
Email Body |
This is a notification that there was a new case created for {!Account.Name}. Please see the details below: {!Case.Origin} {!Case.Reason} {!Case.Type} {!Case.Product__c} |
-
Click Save.
Next, create an email alert that the automation can reference.
- In Service Setup, enter
Email Alerts
in the Quick Find box and select Email Alerts.
- Click Continue.
- Click New Email Alert and fill in the details.
Field |
Value |
---|---|
Description |
Email Alert notifying support agents of new case at large account |
Unique name |
Leave as default |
Object |
Case |
Email Template |
Notification of New Case for Large Account (Tip: Click the lookup icon and select Notification of New Case at Large Account.) |
Recipient Type |
User |
Available Recipients |
Ada Balewa (Click Add to add to Selected Recipients.) |
Additional Emails |
Add your email |
From Email Address |
Current User’s email address |
-
Click Save.
Create an Automation with Flow Builder
Using Flow Builder, you can quickly and easily automate notifications of new cases for large accounts.
- Click the gear icon and select Setup.
- enter
Flows
in the Quick Find box and select Flows.
- Click New Flow.
- Select Record-Triggered Flow and click Create.
- For Object, enter
Case
and select Case.
- Select A record is created.
- Ensure None is selected for the Condition Requirements.
- Ensure Actions and Related Records is selected.
Add a Decision Element
Now add the action you want to happen when your conditions are met. In this case, you want to add a decision element.
- On the path before the End component, hover over and click .
- Search and select Decision.
- Enter the following details:
- Label:
Large Account?
- Ensure API Name is Large_Account
Two paths will be created from this decision element. The yes outcome and the no outcome. First, create the yes parameters.
- With the New Outcome option selected in the Outcome Order, enter the following information:
- Label:
Yes
- Outcome API Name:
Yes
- Condition Requirements to Execute Outcome: Any Condition is Met (OR)
- For Resource, select $Record > Account > AnnualRevenue
- Operator: Greater Than or Equal
- Value:
20000000
(that’s seven zeros.)
- Click Add Condition and enter the following details:
- For Resource, select $Record > Account > NumberOfEmployees
- Operator: Greater Than or Equal
- Value:
5000
Don't close the panel yet. The no outcome (default) needs to be defined.
- Click Default Outcome in the Outcome Order.
- Remove the current label text and enter
No
for the Label.
Create an Alert for the Yes Outcome
- On the path below the Yes component, hover over and click .
- Search and select Send Email Alert.
- Ensure Filter By is set to Type and Email Alert is selected.
- Click in the Action search bar and select Email Alert notifying support agents of new case at large a…
- Enter the following details:
- Label:
Notification of Case for Large Account
- API Name:
Notification_of_Case_for_Large_Account
- For Record ID, select $Record > Id
- Click Done.
Save and Activate the Flow
- Click Save in the upper right.
- Label your new Flow as
Notification: Case for Large Account
.
- Ensure the Flow API Name is
Notification_Case_for_Large_Account
.
- For Description enter
Notify Product Support Specialist regarding new cases for large accounts
.
- Click Save.
- Click Activate.
- Click the back arrow button (icon) in the upper left.
Test the Automation
Now, test the process you just built to verify that it works.
- Click the App Launcher and select Service.
- Click the Accounts tab.
- In the dropdown list, choose All Accounts.
- Click United Oil & Gas Corp.
- Click the Details tab, and notice the Annual Revenue and Employee count. This is a large account.
- Click the Related tab.
- Click New under the Cases related list.
- Select a Record Type: Product Support
- Click Next and enter the details.
Field |
Value |
---|---|
Type |
Problem |
Case Reason |
Breakdown |
Status |
New |
Case Origin |
Phone |
Subject |
Charge Controllers Replacement |
Description |
The charge controllers are not working and need to be replaced. |
Product |
Charge Controllers |
-
Click Save.
- Check your email to make sure you received the alert.
Now, anytime there’s a new case at a large account, you and Ada will be notified. In the next step, set up Entitlements to identify the level of service reps should be providing for Ursa Major Solar customers.
Resources