"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.
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.
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
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
- Go to Setup > Flows > New Flow, choose Start From Scratch, then Record-Triggered Flow.
- 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.
- 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.
- Add a Scheduled Path: 2 hours after Lead: Created Date. On it, add a Decision: is $Record.Status still New?
- On the Yes branch, add a Send Custom Notification or email action to the showroom manager.
- Save as "Lead: Speed to Lead", with a description that names KAV-04. Debug it, then Activate.
- 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
- New Flow: Screen Flow. Create a text variable recordId, available for input.
- Add a Get Records for the Lead with Id = recordId.
- Screen 1: Model (picklist), Demo Car (picklist), Date and Time, and a "Driving licence verified" checkbox.
- Decision: if the licence isn't verified, show a screen asking the consultant to verify it first.
- Create Records: an Event with the Test Drive record type, Who = the lead, start and end times.
- Update Records: Lead Status = Test Drive Scheduled.
- Final screen: "Test drive booked for {date}". Save and activate.
- 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
- Go to Setup > Approval Processes, choose Quote, and use the Standard Setup Wizard.
- Entry criteria: Discount amount greater than 25,000. Approver field: the submitter's Manager. Record editability: administrators only.
- Initial submission actions: field update Status = In Review; the record locks automatically.
- 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.
- Final approval: Status = Approved, email the submitter. Final rejection: Status = Rejected, unlock. Recall: Status = Draft, unlock.
- Activate. Add the Approval History related list to the Quote layout.
- 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
- Build Flow 1 from the Demo.
- Debug it with a sample lead, then activate.
- 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.
- 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
- Build AUT-S01, the guided claim intake screen flow, and add it to the Service Console utility bar or as an Account quick action.
- Build AUT-S02: when an incoming email arrives on a Documents Pending case, set the case to Under Assessment and create a task.
- 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.
Reflect and exit check
Quick test
Exit check: are you ready for Step 15?
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
Trainer notes
Open the suggested session plan and coaching notes
| Session | Cover | Students 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.