Automation Champion

Automating Salesforce One Click at a Time
Automation Champion
  • Home
  • About Me
    • Testimonials
    • Resources
  • Process Builder
  • Salesforce Flow
  • Pardot
  • Apex
  • Training Details
    • Salesforce Administrator
    • Salesforce Advanced Administrator
    • Platform App Builder
    • Lightning Flow
    • Pardot
    • Sales Cloud
    • Service Cloud
    • Community Cloud
    • Hands-on Excercises
  • My Books
  • Contact Me
  • Tag: After-save flow After save flow

    • Getting Started with Salesforce Flow – Part 40 (Email-to-Lead with the Help of Salesforce Flow)

      Posted at 2:51 PM by Rakesh Gupta, on December 17, 2020

      Big Idea or Enduring Question:

      How to utilize the Flow and set up email-to-lead in salesforce? 

      Salesforce Flow is a powerful feature provided by Salesforce to minimize the code in your organization. By using it you can create, update, delete records everything just drags and drop. With the recent enhancements (Record-triggered Flow, Schedule-triggered Flow) Salesforce giving more power to admins to create automation with NO code.

      Salesforce provides web-to-email features that allow organizations to capture leads from their website. At the same, Salesforce doesn’t offer the email-to-lead feature. There are a few apps available on AppExchange for this purpose. In this article, we will create an automation that allows users to create a lead by sending an email to a specific email address.

       Objectives:

      After reading this blog post, you will be able to understand:

      • When should you use Before-save vs after-save record-triggered flow?
      • How to setup Email-to-case in Salesforce 
      • Use After-save Record-Triggered Flow to create a record
      • Use After-save Record-Triggered Flow to delete a record

      Business Use case

      Corey Eridon is working as a System Administrator at Universal Containers (UC). He has received a new requirement to implement email-to-lead for the organization so that when sales reps send an email to leadstosalesforce@gurukuloncloud.com, it will automatically create a lead in Salesforce. Make sure to assign the lead to the sales rep who sent the email. 

      Automation Champion Approach (I-do):

      Salesforce now allows you to add time-dependent actions in the Flows, similar to the Process Builder. This is a major enhancement that will ultimately bring Flow to the next level. 

      There are multiple ways to solve the above business requirement. You can either use Apex trigger, Salesforce Flow, Process Builder, and more. To solve this requirement, we will use the After-save Record-Triggered Flow. Check out this article to understand why we are using after-save record-triggered flow for this scenario. 

      Before going ahead, take a moment here to understand how email-to-case captures the data from email and stores it in the case record. 

      Field Name Case Fields
      Email Subject Subject
      Email Body Description
      Email Web Email
      Name Web Name

      Before discussing the solution, let me show you a diagram of a Process Flow at a high level. Please spend a few minutes to go through the following Flow diagram and understand it. Let’s begin building this automation process.

      Guided Practice (We-do):

      There are 5 steps to solve Corey’s business requirement using After-save Record-Triggered Flow. We must: Read the rest of this entry!

      Posted in Sales cloud, Salesforce Flow | 8 Comments | Tagged Add Scheduled Path to Flow, Add Scheduled Paths, After-save flow After save flow, After-save Record-Triggered Flow, Case Origin, create lead from email, Email Services Address, email to lead salesforce, email to lead setup salesforce, email-to-case, email-to-case in Salesforce, email-to-case Lightning Flow Flow, email-to-case setting, email-to-case setting Salesfore, email-to-case using Flow, Email-to-lead, flow, Flow builder, flow builder in salesforce, flow builders, flow trigger, Lead, Lightning Flow, lightning flows in salesforce, New Flow, Opportunity, Record Create, Record Delete, Record Lookup, sales force automation software, salesforce, salesforce automation, salesforce automation tools, Salesforce Flow, salesforce flows, salesforce lightning flow, salesforce lightning flow examples, Time based action to Flow
    • Getting Started with Salesforce Flow – Part 39 (Out of Office Notification For Chatter Post)

      Posted at 2:03 PM by Rakesh Gupta, on December 5, 2020

      Big Idea or Enduring Question:

      How to set up an out-of-office message for a chatter post? 

      Out of Office messages are automatic email replies that go out to colleagues, customers, and clients when you are away from work. You can do these settings in your email account, but there are no such settings available in Salesforce. There are a few apps available on AppExchange for this purpose. In this article, we will create automation that allows users to set up an out-of-office message for chatter posts. 

       Objectives:

      After reading this blog post, you will be able to understand:

      • When should you use Before-save vs after-save record-triggered flow?
      • Use a Decision element to find – record collection variable contains a record or not
      • Use After-save Record-Triggered Flow to create records (Bulk safe) 

      Business Use case

      Corey Eridon is working as a System Administrator at Universal Containers (UC). He has received a new requirement to implement Out of Office notification for Chatter post. It means if a user is out of the office and every time someone mentions him on a Chatter post (TextPost or LinkPost) then auto post an automatic out-of-office comment. Similar to the following screenshot:

      Automation Champion Approach (I-do):

      There are multiple ways to solve the above business requirement. You can either use Apex trigger, Salesforce Flow, Process Builder, and more. To solve this requirement, we will use the After-save Record-Triggered Flow. Check out this article to understand why we are using after-save record-triggered flow for this scenario. 

      Before proceeding ahead, you have to understand the FeedComment object. It represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts.

      Field Name Details
      CommentBody The text in the comment. group.
      CommentType The type of comment:

      • ContentComment—an uploaded file on a comment
      • TextComment—a direct text entry on a comment
      FeedItemId The Id of the feed item containing the comment.
      CreatedById The Id of the user who added this item to the feed. 

      Before discussing the solution, let me show you a diagram of a Process Flow at a high level. Please spend a few minutes to go through the following Flow diagram and understand it. Let’s begin building this automation process.

      Guided Practice (We-do):

      There are 2 steps to solve Corey’s business requirement using After-save Record-Triggered Flow. We must: Read the rest of this entry!

      Posted in After-Save Flow, Chatter, Salesforce Flow | 18 Comments | Tagged After-save flow After save flow, After-save Record-Triggered Flow, flow, Flow builder, flow builder in salesforce, flow builders, Lightning Flow, lightning flows in salesforce, Out of Office, Out of Office Automation Salesforce, Out of Office Chatter Post, Out of Office notification, Out of Office notification in Chatter, Out of Office notification in Salesforce, Out of Office Post, Out of Office Salesforce, Out of Office setting in Salesforce, Out of Office Setup in Salesforce, Out of Office Status, Out of Office Status on Chatter, Record-Triggered Flow, Record-Triggered Flow Example, sales force automation software, salesforce automation, salesforce automation tools, Salesforce Flow, salesforce flows, salesforce lightning flow, salesforce lightning flow examples
    ← Older posts
    • Search

    • Upcoming Trainings

      Salesforce Administrator Certification
      Salesforce Advanced Administrator Certification
      Salesforce Platform App Builder Certification
      Lightning Flow & Process Builder
      Advanced Lightning Flow
      Pardot Specialist & Consultant Certification
      Sales Cloud Consultant Certification
      Service Cloud Consultant Certification
      Community Cloud Consultant Certification
    • Sponsor #1

    • Sponsor #2

    • Sponsor #3

    • Sponsor #4

    • Order Now!

    • Buy My Book

    • Buy My Book

    • Recent Posts

      • Getting Started with Salesforce Flow – Part 58 (Customize Previous, Next, Finish, and Pause Button Label for Screen Flow!)
      • Streamline Data Collection with Salesforce-Connected Forms
      • Getting Started with Salesforce Flow – Part 56 (Merge Chatter Topics with the Help of Salesforce Flow)
      • Getting Started with Salesforce Flow – Part 57 (Adding Validation to Flow Screen Components)
      • Getting Started with Salesforce Flow – Part 55 (Add or Remove Followers to a Record with the Help of Salesforce Flow)
    • Salesforce ID Converter Build on Lightning Flow

      Converting 15 digit ID to 18 digit Salesforce ID
    • Blog Archives

    • Categories

  • Information

    • About Me
    • Affiliate Disclaimer
    • Contact Me
    • Privacy Policy
  • Top Posts

    • Learning Flow
    • Learning Process Builder
    • Salesforce Spring’21 Release Quick Summary
    • Getting Started with Salesforce Flow – Part 24 (Automatically Assign Permission Sets to New User)
    • Add Record to Multiple Chatter Groups - Parsing Multi-Select Picklist fields (Flow)
    • Getting Started with Salesforce Flow – Part 31 (Auto Submit Record into Approval Process with Flow)
    • Getting Started with Salesforce Flow – Part 11 (Count Number of records in a Record Collection Variable)
    • Getting Started with Salesforce Flow – Part 58 (Customize Previous, Next, Finish, and Pause Button Label for Screen Flow!)
    • Add mass members into Queues through Data Loader
    • Getting Started with Pardot – Part 15 (Setting up Tracker Domain aka CNAME)
  • Social Media

    • View Automationchampion’s profile on Facebook
    • View Automationchamp’s profile on Twitter
    • View Rakeshistom’s profile on GitHub