Learner's Byte logo goes here
+
Oscar IT Solutions logo goes here

"Har baar wahi kaam, haath se? Ab nahi."

"The same task, by hand, every single time? Not any more." Automation gives people back their time for customers.

  • Which flow type?
  • What starts it?
  • Before or after save?
  • Who approves?
  • What if it fails?

Step 14: Flows and Approvals

Flow is Salesforce's main tool for automation without code. You will learn every flow type, exactly how each one starts, and how to build them, plus approval processes that route decisions to the right people.

Organisations
Kaveri Motors (Org C) and Suraksha General Insurance (Org D)
You will build
Five Kaveri flows, four Suraksha flows and two approval processes
Suggested time
5 live sessions of 90 minutes, plus about 10 hours of practice
AI skills used
Coding and Automation, Reasoning and Problem Solving

You are hereSteps 1-4 Requirements and configurationSteps 5-9 DevelopmentSteps 10-11 Test and deploySteps 12-15 Rollout

Hook: one consultant's day, before and after

Nothing on the right replaced a person. Every automation freed time for the part only a person can do: talking to the customer.

Byte This: Automate the routine, so that people can do the human work.

By the end of this workbook, you will be able to

  • Choose the right flow type for any requirement, and explain how it starts.
  • Build screen, record-triggered, schedule-triggered, platform event-triggered and autolaunched flows.
  • Decide between before-save and after-save, and use scheduled and asynchronous paths.
  • Use Flow Builder's elements and resources, debug, version and activate flows.
  • Build approval processes with steps, approvers and actions, and know where Flow approvals fit.
  • Avoid the mistakes that break flows at scale.

Concept: which flow, when?

Every flow has a start: the thing that makes it run. Ask these questions in order. The first "yes" tells you the flow type.

The flow types at a glance

Workflow Rules and Process Builder: Salesforce ended support for them on 31 December 2025. Existing ones may still run, but build everything new in Flow, and use the Migrate to Flow tool in Setup to move old ones across.

Every flow type, drawn

Each diagram shows what starts the flow, and the typical elements inside. Dark shapes are starts, gold are decisions, green are data elements, purple are actions and screens, grey are ends.

Record-triggered flows in depth

Most automation in real projects is record-triggered. These are the choices you make in its Start element.

Before-save or after-save?

Where flows run when a record is saved

A simplified view of Salesforce's order of execution. Purple steps are where your flows run.

This is simplified for learning. Salesforce's "Triggers and Order of Execution" documentation has the full list.

Useful record references

Inside Flow Builder

Elements

Resources

Build, test, run, maintain

Rules that keep flows healthy at scale

Approval processes

An approval process sends a record to the right person to approve or reject, locks it while they decide, and acts on the answer.

The parts of a classic approval process

Classic approval processes or Flow approvals?

This workbook builds classic approval processes, because they are simpler to learn and still common in real orgs. Your trainer may demonstrate a Flow approval process for comparison.

Try it: the flow designer

Pick a business requirement. See which flow type fits, how it starts, and what the flow looks like.

Try it yourself: which flow type?

Demo: Kaveri Motors

Five flows and one approval process, in Org C. Each traces to a requirement from CRM 2.

Build Flow 1: Speed to lead

  1. Go to Setup > Flows > New Flow, choose Start From Scratch, then Record-Triggered Flow.
  2. Object: Lead. Trigger: A record is created. Entry condition: Lead Source isn't blank, and the user doesn't have the Bypass_Validation custom permission. Optimize for Actions and Related Records.
  3. Add Create Records: a Task with Subject "Call within 1 hour", Who = $Record.Id, Owner = $Record.OwnerId if it is a user, Due Date = today.
  4. Add a Scheduled Path: 2 hours after Lead: Created Date. On it, add a Decision: is $Record.Status still New?
  5. On the Yes branch, add a Send Custom Notification or email action to the showroom manager.
  6. Save as "Lead: Speed to Lead", with a description that names KAV-04. Debug it, then Activate.
  7. Test: create a lead, and check the Task. Watch the scheduled path in Setup > Scheduled Jobs, or temporarily use a shorter offset to test.

Build Flow 3: Book a test drive

  1. New Flow: Screen Flow. Create a text variable recordId, available for input.
  2. Add a Get Records for the Lead with Id = recordId.
  3. Screen 1: Model (picklist), Demo Car (picklist), Date and Time, and a "Driving licence verified" checkbox.
  4. Decision: if the licence isn't verified, show a screen asking the consultant to verify it first.
  5. Create Records: an Event with the Test Drive record type, Who = the lead, start and end times.
  6. Update Records: Lead Status = Test Drive Scheduled.
  7. Final screen: "Test drive booked for {date}". Save and activate.
  8. On Lead, create a quick action of type Flow using this flow, and add it to the page layout. Click it from a lead.

Build the quote discount approval

  1. Go to Setup > Approval Processes, choose Quote, and use the Standard Setup Wizard.
  2. Entry criteria: Discount amount greater than 25,000. Approver field: the submitter's Manager. Record editability: administrators only.
  3. Initial submission actions: field update Status = In Review; the record locks automatically.
  4. Step 1: all entering records, approver Manager. Step 2: criteria Discount greater than 50,000, approver GM Sales; if the criteria aren't met, approve the record.
  5. Final approval: Status = Approved, email the submitter. Final rejection: Status = Rejected, unlock. Recall: Status = Draft, unlock.
  6. Activate. Add the Approval History related list to the Quote layout.
  7. Test as Arjun with a ₹40,000 discount, then approve as Kavitha. Then test ₹60,000 through both steps.

Practice: Suraksha General Insurance

Four flows and the claim approval, in Org D. Design each one before you open the model.

Open the Suraksha model answer after you design them

AUT-S04 drawn

Three exercises

Exercise 1: Build and prove the speed-to-lead flow

  1. Build Flow 1 from the Demo.
  2. Debug it with a sample lead, then activate.
  3. Create three leads: one that should trigger it, one with no Lead Source, and one loaded by your migration user with the bypass permission. Record what happened for each.
  4. Open Flow Trigger Explorer for Lead, and record which flows run on create, in what order.

Exercise 2: Build Suraksha's claim intake and document flows

  1. Build AUT-S01, the guided claim intake screen flow, and add it to the Service Console utility bar or as an Account quick action.
  2. Build AUT-S02: when an incoming email arrives on a Documents Pending case, set the case to Under Assessment and create a task.
  3. Test by sending an email to the case thread from CRM 3's Email-to-Case setup.

Exercise 3: Spot what's wrong

Each design below will cause trouble in production. Choose the main problem.

Build your Automation Pack

Document every automation: what starts it, what it does, and how you tested it. The next admin will thank you. Your work saves in this browser on this device.

Build with AI

Salesforce offers AI that drafts flows from a description, in Flow Builder, where your org has it enabled. Any AI is good at planning flow logic and writing formulas. You still build carefully and test every path.

Three rules: Always read every element of an AI-drafted flow before activating it. Test the bulk case, such as 200 records, not just one. Never let AI choose who approves money or claims.

Reflect and exit check

Quick test

Exit check: are you ready for Step 15?

What Step 15 needs from you: Automations create the data that reports measure: tasks completed, approvals given, cases moved on. Step 15 turns that data into decisions.

Interview preparation

Flow questions appear in almost every admin and developer interview. Practise these aloud, then use our AI interview agents for feedback.

For your resume and portfolio

Training project: Designed and built record-triggered (before-save, after-save, scheduled paths), screen, schedule-triggered, platform event-triggered and autolaunched flows, plus multi-step approval processes, for a simulated dealership and insurer, with bypass controls, fault handling and documented tests.

Trainer notes

Open the suggested session plan and coaching notes
SessionCoverStudents leave with
1 (90 min)Hook, the decision tree, every flow type drawn, the designer. Draw three flows on the board together.Can name the type for any scenario
2 (90 min)Record-triggered in depth, order of execution. Build Flow 1 and Flow 2 live.Exercise 1 started
3 (90 min)Flow Builder elements and resources. Build the test drive screen flow and the subflow live.Kaveri flows built
4 (90 min)Approval processes. Build the quote approval live, then compare with a Flow approval demo.Kaveri approval working
5 (90 min)Suraksha practice and Exercises 2 and 3 in pairs.Automation Pack, reflection and exit check

Common mistakes to catch

  • No entry conditions, so the flow runs on every save and on its own updates.
  • Get Records or Update Records inside a loop. Show a debug with 200 records.
  • Using after-save to update the same record. Use before-save.
  • Hard-coded record or user IDs, which break between sandbox and production.
  • No fault paths, so users see a cryptic error.
  • Forgetting to activate, or editing the active version instead of saving a new one.

Check before each batch

Flow Builder changes every release: element names, the AI flow drafting feature, Flow approvals and Orchestration availability. Check what a fresh Developer Edition org offers, and update the build steps.