LearnFrenzy
Sign in Take a free test

Salesforce Flows (Complete) interview · Set 1 of 6

Flow Types and When to Use Each

  • 6 follow-up questions
  • 4 key points
  • Code examples
Test yourself

The right flow for the trigger

Start every flow answer with what triggers it. Then choose the type, the elements and whether Flow or Apex is the better tool.

  • TypesScreen, record, schedule, event and autolaunched.
  • Building blocksElements, resources and connectors.
  • DecisionsFlow vs Apex and versioning.

Flow is now Salesforce's main automation tool — Workflow Rules and Process Builder are retired for new work. Interviews start by checking that you know the flow types and pick the right one for each requirement.

1. What flow types are there and when do you use each?

Which flow type?

What starts the flow?

  • A user, on a screen→ Screen flow (guided forms, wizards, quick actions)
  • A record is created, updated or deleted→ Record-triggered flow
  • A time or schedule→ Schedule-triggered flow
  • A platform event message→ Platform event-triggered flow
  • Another flow, Apex, a button or API→ Autolaunched flow (no trigger)

2. What are the main building blocks of a flow?

  • Elements — interaction (Screen, Action, Subflow), logic (Assignment, Decision, Loop, Collection Sort/Filter, Transform) and data (Create, Update, Get, Delete Records).
  • Resources — variables, constants, formulas, text templates, choices and collections.
  • Connectors — the paths between elements, including fault paths for errors.

3. Flow or Apex — how do you decide?

Use Flow when the logic is clear, data volumes are moderate and admins should be able to maintain it. Use Apex for complex algorithms, very large data volumes, heavy processing where performance matters, complex integrations, or behaviour that needs detailed unit testing. Both can work together: flows can call invocable Apex, and Apex can start flows.


4. What happened to Workflow Rules and Process Builder?

Salesforce retired them for new automation and encourages migrating existing ones to Flow with the Migrate to Flow tool. Flow is faster (before-save flows), more powerful (loops, screens, subflows) and has better debugging.


5. What is a flow version and how is it activated?

Each save can create a new version; only one version of a flow is active at a time. You can test and debug a newer inactive version, then activate it — and roll back by activating an older version. Deploy flows between orgs as metadata.


6. What variables and resources are most important?

Variables (single values, records and collections) hold data; mark them “available for input/output” to pass data in and out. Formulas calculate values. Text templates build email bodies. Choices and collection/record choice sets power picklists on screens. Global variables such as $Record, $User and $Flow.CurrentDate give context.


7. How can a flow be launched?

From Lightning pages (Flow component), quick actions and buttons, utility bars, Experience Cloud sites, Apex (Flow.Interview), REST API, other flows (subflows), Einstein and Agentforce actions, and automatically from triggers, schedules and platform events.


8. What is Flow Orchestration?

A way to coordinate multi-step, multi-user business processes — stages and steps that assign work to different people or run background flows, with tracking. Useful for onboarding or approvals that span several teams; it is a paid capability beyond a set number of runs.


Remember

Key points

  • Trigger decides the type

    User, record, time, event or caller.

  • Flow replaces Workflow and PB

    Migrate with the Migrate to Flow tool.

  • One active version

    Roll back by activating an older one.

  • Flow + Apex together

    Invocable actions bridge them.

Interview drill

Follow-up questions

What the interviewer asks after your first answer. Turn on practice mode, answer each one aloud, then reveal.

  1. 1 Can a flow run in system mode? Intermediate

    Yes — autolaunched and record-triggered flows can run in system context with or without sharing; screen flows run in user context by default, configurable in advanced settings.

  2. 2 What is a subflow? Basic

    A flow called from another flow with input and output variables, for reusing logic such as “calculate discount”.

  3. 3 What is the Transform element? Intermediate

    An element that maps and converts data from one collection or record shape to another without loops — for example turning Opportunity Products into custom line records.

  4. 4 Can a flow send an email? Basic

    Yes, with the Send Email action, using text templates or email templates.

  5. 5 What are Flow Templates? Basic

    Prebuilt flows from Salesforce and AppExchange you can start from and customise.

  6. 6 Can a flow call an external API without Apex? Advanced

    Yes — the HTTP Callout action (with a Named Credential) or External Services generate actions from an API specification.

Preparing with friends?

Share this page with your study group or placement batch.

Search LearnFrenzy

Esc

Quick links