Final Up to date on April 2, 2023 by Rakesh Gupta
Huge Thought or Enduring Query:
How do you schedule a number of emails with Salesforce Stream?
Goals:
On this article, the reader will be taught the next:
- How one can use Salesforce Stream to ship a number of e-mail alerts utilizing Scheduled Paths
- and far more
Pamela Kline is working as a System Administrator at Gurukul on Cloud (GoC). At GoC they’re utilizing Salesforce Stream to streamline Gross sales Processes. Pamela obtained a requirement – as quickly as a Case is closed, do the next duties:
- Ship a follow-up e-mail to the shopper 2 days after the Case Closed Date is populated.
- Ship a satisfaction survey to the shopper 15 days after the Case Closed Date.
Automation Champion Strategy (I-do):
Salesforce Stream is likely one of the strongest instruments supplied by Salesforce to implement enterprise necessities declaratively. By utilizing it, one can decrease utilization of codes of their Salesforce org. The perfect half is, you don’t have to jot down check courses to your Flows! Implementation of Salesforce Stream could be very straightforward – you create a Stream, check it, after which use a Change Set to deploy it to Manufacturing. To realize mastery of Salesforce Stream, it’s important to perceive its capabilities – reminiscent of, calling an Apex class, and so on. As we speak we’ll talk about one in all Salesforce Stream’s options – Scheduled Paths.
With Scheduled Paths, it’s simpler to – (1) optimize gross sales responsiveness; (2) automate follow-up actions on essential Instances and Alternatives; and (3) assist what you are promoting wants – all inside a single course of!
Earlier than discussing the answer, let me present you a diagram of the method at a excessive stage. Please spend a couple of minutes going by way of the next Stream diagram to know it.
It’s fairly straightforward to create two processes to unravel the above enterprise requirement; nevertheless, on this case, we’ll use one course of to include each the necessities!
Let’s start constructing the automation course of.
Guided Follow (We-do):
There are 5 steps to unravel Brenda’s enterprise requirement utilizing After-Save Document-Triggered Stream. We should:
- Create an e-mail template for follow-up e-mail
- Create an e-mail alert for follow-up e-mail
- Create an e-mail template for satisfaction survey e-mail
- Create an e-mail alert for satisfaction survey e-mail
- Salesforce Stream Steps:
- Outline move properties for record-triggered move
- Add a scheduled path
- Add motion – follow-up e-mail alert
- Add motion – satisfaction survey e-mail alert
Step 1: Create an E mail Template for Comply with-up E mail
- Within the App Launcher, sort E mail Templates.
- Clicks on the New E mail Template button.
- Identify the E mail Template and,
- Choose the Public folder to retailer it in.
- Choose Case for the Associated Entity Sort.
- Choose the Public folder to retailer it in.
- Add a Topic line and different related data to your recipients.
- Click on Save.
Step 2: Create an E mail Alert for Comply with-up E mail
- Click on Setup.
- Within the Fast Discover field, sort E mail Alerts.
- Choose E mail Alerts, click on on the New E mail Alert button.
- Identify the E mail Alert and click on the Tab button. The Distinctive Identify will populate.
- For Object choose Case.
- For the E mail Template select Comply with-up E mail.
- For Recipient Sort choose E mail Area: Contact E mail.
- Click on Save.
Step 3: Create an E mail Template for Satisfaction Survey E mail
- Within the App Launcher, sort E mail Templates.
- Clicks on the New E mail Template button.
- Identify the E mail Template and,
- Choose the Public folder to retailer it in.
- Choose Case for the Associated Entity Sort.
- Choose the Public folder to retailer it in.
- Add a Topic line and different related data to your recipients.
- Click on Save.
Step 4: Create an E mail Alert for Satisfaction Survey E mail
- Click on Setup.
- Within the Fast Discover field, sort E mail Alerts.
- Choose E mail Alerts, click on on the New E mail Alert button.
- Identify the E mail Alert and click on the Tab button. The Distinctive Identify will populate.
- For Object choose Case.
- For the E mail Template select Comply with-up E mail.
- For Recipient Sort choose E mail Area: Contact E mail.
- Click on Save.
Step 5.1: Outline Stream Properties
- Click on Setup.
- Within the Fast Discover field, sort Flows.
- Choose Flows then click on on the New Stream.
- Choose the Document-Triggered Stream possibility, click on on Create and configure the move as follows:
- Object: Case
- Set off the Stream When: A report is created or Up to date
- Set Entry Standards
- Situation Necessities: All Circumstances Are Met (AND)
- Row 1:
- Area: IsClosed
- Operator: Equals
- Worth: {!$GlobalConstant.True}
- Area: IsClosed
- Row 1:
- Situation Necessities: All Circumstances Are Met (AND)
- When to Run the Stream for Up to date Data: Solely when a report is up to date to fulfill the situation necessities
- Optimize the Stream For Motion and Associated Data
- Click on Achieved.
Step 5.2: Salesforce Stream – Add Scheduled Paths
The aim of utilizing a scheduled path to ship e-mail alerts in several days.
- Underneath Begin, choose Add Scheduled Paths (Non-compulsory).
- Underneath Scheduled Path Particulars, enter the Label the API Identify will auto-populate.
- Enter the next data
- Time Supply: Case: Closed Date
- Offset Quantity: 2
- Offset Choices: Days After
- Click on the + within the left-side panel so as to add a second Scheduled Path, and repeat Step 2.
- Enter the Label the API Identify will auto-populate.
- Enter the next data
- Time Supply: Case: Closed Date
- Offset Quantity: 15
- Offset Choices: Days After
- Superior Choices
- Batch Measurement: 200
- Click on Achieved.
Step 5.3: Add Motion – Comply with-up E mail Alert
The subsequent step is so as to add follow-up e-mail alert to the Stream. We’ll use the Motion ingredient.
- Underneath Comply with-up E mail node, choose Motion.
- Under Filter By, choose Sort.
- Choose the E mail Alert.
- Choose the E mail Alert – Comply with-As much as Buyer from the drop-down menu (the e-mail alert which we created in Step #2)
- Label the brand new motion Ship Comply with-up E mail.
- Set Enter Values
- {!$Document.Id}
- Click on Achieved.
Step 5.4: Add Motion – Satisfaction Survey E mail Alert
The subsequent step is so as to add satisfaction survey e-mail alert to the Stream. We’ll use the Motion ingredient.
- Underneath Satisfaction Survey node, choose Motion.
- Under Filter By, choose Sort.
- Choose the E mail Alert.
- Choose the E mail Alert – Satisfaction Survey from the drop-down menu (the e-mail alert which we created in Step #4)
- Label the brand new motion Ship Satisfaction Survey.
- Set Enter Values
- {!$Document.Id}
- Click on Achieved.
In the long run, Pamela’s Stream will appear like the next screenshot:
As soon as all the things seems good, carry out the steps under:
- Click on Save.
- Enter Stream Label the API Identify will auto-populate.
- Click on Present Superior.
- API Model for Operating the Stream: 57
- Interview Label: Case Shut Notifications {!$Stream.CurrentDateTime}
- Click on Save.
Nearly there! As soon as all the things seems good, click on the Activate button.
Proof of Idea
Now onwards, when a assist agent closes a case the processes will fireplace and schedule two actions.
- Navigate to Setup (Gear Icon) | Environments | Monitoring | Time-Primarily based Workflow.
- Click on Search.
- Now search for your Scheduled Stream job displaying data as proven within the following screenshot:
- Use the Delete button to delete the time-based Stream job from the queue.
Formative Evaluation:
I need to hear from you!
What’s one factor you discovered from this publish? How do you envision making use of this new information in the actual world? Be happy to share within the feedback under.