GlossaryTechnology

Salesforce Flow

Term 146 of 175 · Technology

In one sentence

Flow is Salesforce's declarative automation tool: it lets you build business processes (updating records, sending alerts, calling logic) with a visual drag-and-drop editor, without writing code, inside the platform.

Reviewed by Juan Manuel Garrido

Co-founder of VantegrateLinkedIn

Salesforce Flow definition

Flow (or Salesforce Flow) is Salesforce's main declarative automation tool: a visual editor where you build a business process by connecting blocks on a canvas instead of programming it line by line. With Flow you can create and update records, show guided screens to the user, send emails or notifications, call other systems and orchestrate conditional logic, all without writing code.

The core idea is that much of what a company needs to automate (assigning a case, calculating a discount, triggering a follow-up when an opportunity changes stage) can be modeled declaratively. When the logic goes beyond what the editor allows, Flow relies on Apex through invocable actions, combining the visual approach with code only where it is needed. It is one of the pieces an implementation team works with when building on the platform, part of the work covered by Salesforce Developers.

Flow is the standard Salesforce recommends for automation: it replaced Workflow Rules and Process Builder, which are on their way to retirement. Learning Flow is, in practice, learning the platform's modern automation engine.

Why Flow matters

In any Salesforce implementation, the difference between a CRM that "stores data" and one that actually works for the team lies in automation. Flow is what turns a field change into a chain of actions: when a sales rep marks an opportunity as "Closed Won", Flow can create the billing account, notify finance, generate the onboarding task and update the sales forecast, all in milliseconds and without human intervention. That orchestration, done declaratively, is what lets small teams scale processes without hiring developers for every rule.

The most widely used Flow types

Flow is not a single thing: there are several types depending on when and how they run. Knowing the difference avoids costly design mistakes.

  • Record-Triggered Flow: runs when a record is created, updated or deleted. It is the workhorse of background automation (assignments, cross-validations, triggers to other systems). It can run before the save (before-save, extremely fast for modifying the record itself) or after it (after-save, for touching related records or calling external services).
  • Screen Flow: shows interactive screens to the user, ideal for guiding step-by-step processes (a customer onboarding assistant, a service script, a quoting wizard). It can be embedded in Lightning pages, Experience Cloud sites (communities) or the mobile app.
  • Schedule-Triggered Flow: runs on a set schedule over batches of records (for example, marking invoices as overdue every night).
  • Platform Event-Triggered Flow and Autolaunched Flow: invoked by events or from other processes, useful for integrations and complex orchestrations.

A concrete example in Argentina

Think of a consumer goods distributor in Buenos Aires that sells to kiosks and convenience stores. When an order enters the system, a Record-Triggered Flow checks the customer's credit limit: if the order is within the limit, it approves it and triggers the proactive notification to the warehouse; if it exceeds the limit, it creates a task for the collections team and holds the shipment. All of this is built in the visual editor, in hours, without a single semicolon of code. Before, that same logic lived in the sales manager's head or in a spreadsheet; now it lives in the platform, auditable and consistent.

Flow vs Apex: when to use each

The most common question from people getting started is when Flow is enough and when you need code. The rule of thumb: declarative first, code when declarative falls short or does not perform.

AspectFlow (declarative)Apex (code)
Who builds itAdmin or consultant who does not codeDeveloper
Build speedHigh for standard logicMore upfront effort
Very complex logicLimited (large loops, heavy calculations)No practical limit
Bulk processingWatch out for per-batch limitsFine-grained bulk control
MaintenanceVisual, more people understand itRequires a technical profile
External integrationsThrough actions or simple HTTP callsFull control

In real projects, the usual approach is a hybrid model: Flow orchestrates the process and delegates heavy calculations or complex calls to Apex through invocable actions.

Common mistakes to avoid

  • Putting record operations inside loops over many records: it hits Salesforce's governor limits and can break the transaction. Best practice is to process in bulk, not record by record.
  • Stacking multiple Flows on the same object: having five Record-Triggered Flows on Opportunity makes it impossible to know the order of execution. It is better to consolidate the logic.
  • Not using a sandbox: testing automations directly in production is playing with fire. All new logic is validated first in a sandbox.
  • Ignoring error handling: a Flow without fault paths fails silently. You need to define what happens when something goes wrong.

In short

Flow is the backbone of no-code automation in Salesforce. Well designed, it multiplies the team's productivity and keeps processes consistent; poorly designed, it runs into the platform's limits. Mastering it is one of the most valuable skills for an admin or consultant who builds on Salesforce.

In practice

Consolidating before end of support

A financial services company in Buenos Aires is carrying dozens of old Process Builders, many built by people who are no longer with the company. As end of support approaches, instead of migrating them one by one, the team maps the scattered logic and rewrites it in a few well-designed Flows: where there were about 40 automations that were hard to maintain, 10 orderly Flows remain. The result is less technical debt and automations with current support.

A Screen Flow for customer onboarding

A sales team needs every new customer record to always capture the same data. With a Screen Flow, it builds a guided screen that validates the information and creates the record at the end, without anyone having to remember the procedure or touch code. The logic that used to be scattered across validation rules and loose notes is packaged into a single, maintainable flow.

Share
Frequently asked questions

FAQs about Salesforce Flow

What is Flow in Salesforce?

Flow (or Salesforce Flow) is Salesforce's declarative automation tool. It lets you build business processes (creating and updating records, showing guided screens, sending alerts, calling other systems and applying conditional logic) through a visual drag-and-drop editor, without writing code. It is the automation engine Salesforce recommends, and it replaces earlier tools such as Workflow Rules and Process Builder.

What is the difference between Flow and Apex?

Flow is declarative: it is built visually, an admin or consultant can build it without coding, and it is ideal for standard business logic. Apex is Salesforce's programming language, written by a developer and used when the logic is very complex or requires heavy calculations or fine-grained control over bulk processing. The recommended practice is declarative first (Flow) and code (Apex) only when Flow is not enough. Real projects usually use a hybrid model in which Flow orchestrates the process and delegates complex calculations to Apex.

What types of Flow are there in Salesforce?

The main ones are: Record-Triggered Flow, which runs when a record is created, updated or deleted and can run before (before-save) or after (after-save) the save; Screen Flow, which shows interactive screens to guide the user step by step; Schedule-Triggered Flow, which runs on a set schedule over batches of records; Platform Event-Triggered Flow, which reacts to events; and Autolaunched Flow, which is invoked from other processes. You choose each type based on when and how the automation needs to run.

Does Flow replace Workflow Rules and Process Builder?

Yes. Salesforce defined Flow as its single declarative automation tool and put Workflow Rules and Process Builder on the path to retirement: new ones can no longer be created, and existing ones are being migrated to Flow. That is why, for any new automation, the recommendation is to build it directly in Flow, which offers more capabilities and a single place to maintain the logic.

Do you need to know how to code to use Flow?

You do not need to code to start using Flow, because all basic and intermediate logic is built with a visual drag-and-drop editor. An admin or consultant can create powerful automations without writing code. Programming knowledge (Apex) is only needed when the logic goes beyond what the editor allows, such as very complex calculations or advanced integrations, cases in which Flow can call code through invocable actions.

We bring this to your Salesforce

Salesforce implementation, integration and support for LatAm companies, focused on the team actually using it instead of going back to spreadsheets. Tell us where your org stands.

Keep exploring

Related terms

From the glossary

Related questions

We solve it with

Salesforce

Salesforce implementation, integration and support for LatAm companies, focused on real team adoption.

How Salesforce solves it
The full suite
Now that you know what it is, see how it gets solved

Five AI products that work on top of the CRM you already use. They don't replace your system: they add the layer you do by hand today.