Salesforce Decode
Salesforcedecode
All interview topics

Flow & Automation Interview Questions

Record-triggered, screen and scheduled flows, fault handling, and Flow vs Apex decisions.

120 unique questions in this topicDrill in practice mode →

Concept at a glance

Flows start from a record change, screen or schedule, run bulk-safe logic, and need a fault path.

  • Before-save vs after-save
  • Screen flows & subflows
  • Fault paths & error logging
  • When to switch to Apex
Flow & Automation architecture diagram

Flows start from a record change, screen or schedule, run bulk-safe logic, and need a fault path.

Difficulty Level

Topic Focus

Showing 120 of 120 Flow & Automation questions

Beginnerflowrecord-triggeredbefore-save

When do you use a before-save flow vs an after-save flow?

You need to set a Region field from the Account's billing country, and also create a follow-up Task when an Opportunity closes.

Intermediateflowrecord-triggeredentry-conditions

What does "Only when a record is updated to meet the condition requirements" mean?

A flow that emails the account manager when an Opportunity is Closed Won sends the email every time the closed record is edited.

Intermediateflowbulkificationgovernor-limits

How do you bulkify a record-triggered flow?

A data load of 5,000 Contacts fails with "Too many SOQL queries: 101" because of a flow.

Intermediateflowscheduledrecord-triggered

What are scheduled paths in a record-triggered flow?

Send a reminder to the owner 3 days before an Opportunity's close date if it is still open.

Advancedflowasynccallouts

What is the "Run Asynchronously" path and when should you use it?

When an Account is created, you must call an external credit-check API, but callouts are not allowed in the trigger transaction.

Advancedflowtroubleshootingrecursion

How do you prevent recursion and infinite loops in flows?

An after-save flow on Account updates Contacts, a Contact flow updates the Account, and saves now take 8 seconds.

Intermediateflowrecord-triggeredprior-value

What is $Record__Prior and what are its limits?

You need to notify finance only when the Amount on a closed Opportunity changes by more than 10%.

Advancedflowdesignflow-trigger-explorer

How many record-triggered flows should you have per object, and how do you order them?

Opportunity has 17 active record-triggered flows built by different admins, and nobody knows which runs first.

Intermediateflowfault-handlingerror-logging

How do you design fault handling in flows?

Users see "An unhandled fault has occurred in this flow" and admins receive cryptic emails.

Intermediateflowapexflow-vs-apex

When should you choose Apex over Flow?

A requirement involves complex pricing rules across 6 objects, large data volumes and a callout with retries.

Advancedflowsecurityrun-context

What runs a flow in system context vs user context, and why does it matter?

A screen flow on an Experience Cloud site lets guest users look up Order status, and security asks what data it can read.

Intermediateflowtroubleshootingdebugging

How do you debug a record-triggered flow that is not firing?

A flow that should create a Task when a Case is escalated does nothing in production.

Advancedflowtestingdevops

What are Flow Tests and what can they cover?

A team wants regression tests for critical flows before each release.

Intermediateflowbulkificationrelated-records

How do you update related records efficiently in a flow?

When an Account's Status changes to Inactive, all its open Opportunities should be set to Closed Lost.

Intermediateflowbatchscheduled

What is a schedule-triggered flow and what are its limits?

Every night, contracts expiring in 30 days need a renewal Opportunity created.

Advancedflowintegrationplatform-events

What is a platform event-triggered flow and when would you use it?

An ERP publishes "Order Shipped" events and Salesforce must update the Order and notify the customer.

Advancedflowapexinvocable

How do you call Apex from a flow correctly?

A developer wrote an invocable method that takes a single Id and runs a SOQL query, and it fails during a bulk load.

Advancedflowcollectionstransform

What is the Transform element and when does it beat a loop?

You need to map a list of Opportunity Line Items into a list of custom Order Line records with renamed fields.

Intermediateflowdeploymentversions

How do flow versions work and how do you deploy flows safely?

An admin activated a new flow version in production and broke order creation; they need to roll back fast.

Advancedflowperformancegovernor-limits

What governor limits matter most for flows?

A flow works for single records but fails during a 10,000-record integration update.

Intermediateflowscreen-flowreactive

How do you build a reactive screen flow?

On a quote screen, the total should update instantly when the user changes quantity or discount.

Advancedflowlwcscreen-flow

How do you embed a custom LWC in a screen flow?

The standard components cannot show a searchable product picker with images.

Beginnerflowscreen-flowquick-actions

How do you launch a screen flow from a record page, button or list view?

Agents need a guided "Process Return" wizard from the Case page and a bulk action from a list view.

Intermediateflowvalidationscreen-flow

How do you handle validation and error messages in screen flows?

A user enters a past date for a delivery request and the flow happily saves it.

Advancedfloworchestrationprocess

What are flow orchestrations and when would you use them?

Employee onboarding involves HR, IT and facilities tasks in stages over two weeks, some in parallel.

Intermediateflowdesignsubflow

How do you pass data between a parent flow and a subflow?

Several flows need the same "calculate shipping fee" logic.

Advancedflowintegrationhttp-callout

How do you make HTTP callouts from a flow without code?

You need to fetch exchange rates from a public REST API in a screen flow.

Advancedflowsecurityexperience-cloud

How do you build a guided screen flow for Experience Cloud guest users securely?

A public "Request a Callback" form on the website should create a Lead.

Intermediateflowscreen-flowdata-table

How do you show and edit multiple records in a screen flow?

A manager wants to review all of a rep's open Opportunities and update close dates on one screen.

Beginnerflowscreen-flow

What are the main screen flow components every admin should know?

You are designing a 3-screen intake form.

Advancedflowpausewait

How do you pause a flow and resume it later?

After submitting a request, the process should wait until a manager approves or 5 days pass.

Intermediateflowemaillimits

How do you send emails from flows and avoid hitting limits?

A nightly scheduled flow sends one email per overdue invoice, about 8,000 a night.

Advancedflowapproval-processrecord-locking

How do you lock or unlock records from automation?

Contracts must become read-only once signed, except for the legal team.

Beginnerflowget-records

What is the difference between Get Records "first record" and "all records" options?

A flow uses Get Records to find the primary Contact but sometimes picks a random one.

Advancedflowassignmentround-robin

How do you build round-robin assignment with Flow?

New Leads should be distributed evenly among 6 inside sales reps who are currently active.

Intermediateflowcustom-permissionsbypass

How do you prevent a flow from running for integration or data-migration users?

A data migration of 2 million records triggers welcome emails and tasks from flows.

Intermediateflowrun-contextautomated-process

What is the Automated Process user and why does it matter?

Tasks created by a scheduled path show "Created by: Automated Process" and the owner field is unexpected.

Advancedflowmigrationprocess-builder

How would you migrate a complex Process Builder that calls Apex and updates five objects?

A process builder on Opportunity has 12 criteria nodes, calls invocable Apex, and updates Account, Contact, Quote, Order and a custom object.

Intermediateflowcustom-metadataconfiguration

How do you use custom metadata in flows to avoid hard-coding?

A flow routes cases to queues based on product, and the mapping changes every quarter.

Advancedfloworder-of-executionflow-vs-apex

What is the difference between a record-triggered flow and an Apex trigger in terms of order and capabilities?

The team must decide whether new Case logic should be a flow or a trigger, given an existing trigger framework.

Beginnerbasicsflow

What are the basic building blocks of a flow?

A fresher is asked to explain Flow Builder.

Beginnerflowcollectionsvariables

What is the difference between a variable and a collection variable?

You need to store a list of Contacts to update.

Beginnerflowdecision

How does a Decision element work?

Route a Case differently by priority.

Beginnerflowformulas

What is a formula resource in Flow and when do you use one?

You need the due date to be 5 business days later, and a full name built from two fields.

Beginnerflowbulkificationloops

How do you loop through records and avoid common mistakes?

You must set a field on every child record of an Account.

Intermediateflowscreen-flowchoices

What is a record choice set vs a collection choice set vs a picklist choice set?

A screen needs to let the user pick one of their open Opportunities.

Beginnerflowcreate-records

How do you create a record and use its new Id in the same flow?

Create an Opportunity and then create a related Task linked to it.

Beginnerflowglobal-variables

What are global variables like $Record, $User and $Flow?

You need the current user's manager and the current time in a flow.

Intermediateflowdata-managementdelete-records

How do you delete records with a flow safely?

Draft Quotes older than 90 days should be removed nightly.

Beginnerflowcustom-notifications

How do you notify a user inside Salesforce instead of by email?

Account owners should be alerted on mobile and desktop when a high-value case is logged.

Intermediateflowlimitspaused-interviews

What are flow interview limits and how do paused interviews affect them?

A flow with Wait elements creates thousands of paused interviews each week.

Advancedflowtroubleshootingrecord-locking

How do you update a parent record from a child flow without locking issues?

Bulk inserting 50,000 Case Comments fails with UNABLE_TO_LOCK_ROW because a flow updates the parent Case each time.

Intermediateflowcollectionscollection-filter

What is the Collection Filter element and why use it?

From a list of 300 Opportunity Line Items, you need only those with a discount above 20%.

Intermediateflowapexautolaunched

How do you run a flow from Apex?

A trigger framework needs to reuse an admin-maintained autolaunched flow for discount calculation.

Beginnerflowscreen-flowupdate-records

How do you build a screen flow that updates fields on the current record?

Agents need a "Close Case" button that asks for resolution notes and a reason.

Intermediateflowupdate-records

What is the difference between "Update Records" using a record variable vs using conditions?

Two admins disagree on how to update related Contacts in a flow.

Beginnerflowdebuggingvalidation-rules

A flow error email says "FIELD_CUSTOM_VALIDATION_EXCEPTION". What does that mean?

A flow that creates Contacts started failing after a new validation rule was added.

Intermediateflowtestingdebugging

How do you test a flow with different users?

A screen flow works for admins but fails for sales reps.

Beginnerflowassignment

What is the difference between Assignment "Equals" and "Add"?

A collection ends up with only one record after a loop.

Intermediateflowscreen-flowduplicates

How do you prevent a screen flow from creating duplicate records when users double-click?

Users report two identical Orders after clicking Finish twice on a slow screen.

Architectflowarchitecturedesign

Design automation for an Opportunity that touches pricing, approvals, notifications and an ERP sync.

A new deal desk process: discounts need approval, approved deals sync to ERP, and stakeholders are notified at each step.

Advancedflowscheduledcase

How would you implement SLA timers on Cases using Flow?

High-priority cases must get a first response in 2 business hours; managers want an alert at 90 minutes.

Architectflowintegrationperformance

How do you design automation that must work for both UI users and a high-volume integration?

An integration updates 500,000 Accounts nightly; the same Account flows send notifications intended for human edits.

Advancedflowpartial-successfault-handling

How do you handle partial failures when a flow updates many related records?

When an Account is merged, a flow updates 300 related records; one fails validation and everything rolls back.

Advancedflowplatform-eventsfault-handling

How do you implement a reusable error logging framework for flows?

Different admins log flow errors in different ways and support has no single place to look.

Advancedflowflow-trigger-explorerrefactoring

How do you migrate from many record-triggered flows to a cleaner structure?

Case has 23 record-triggered flows; CPU time per save is 6 seconds and agents complain.

Advancedflowsecurityfls

How do you build a flow that respects field-level security for the running user?

A screen flow shows salary information, and only HR should see it.

Advancedflowlarge-data-volumeflow-vs-apex

What is the difference between Flow and Apex for handling large data volumes?

You must recalculate a score on 3 million Contacts every week.

Intermediateflowbefore-saverelated-records

How do you implement field defaulting that depends on related records?

New Cases should copy the support tier from the Account's active entitlement.

Advancedflowapproval-processdynamic-approvers

How would you build an approval with dynamic approvers using Flow?

The approver depends on deal region and amount, stored in a matrix that changes often.

Intermediateflowuxscreen-flow

How do you design a screen flow wizard with back navigation and data consistency?

A 5-step onboarding wizard sometimes creates records twice when users go back and forward.

Intermediateflowdatetimetime-zones

How do you handle time zones correctly in flows?

A follow-up task due "tomorrow at 9am" lands at 3:30am for users in India.

Intermediateaifloweinstein

What is Einstein for Flow / AI-assisted flow building and how do you use it responsibly?

An admin used AI to generate a record-triggered flow from a prompt and wants to deploy it immediately.

Advancedflowlwcembedding

How do you call a flow from an LWC or Aura component?

A custom LWC page needs to launch an existing screen flow inline with an input record Id.

Advancedflowdesignkill-switch

How do you design automation so that it is easy to switch off in an emergency?

A faulty automation sent 20,000 emails before anyone could deploy a fix.

Intermediateflowintegrationslack

How do you use Flow with Slack or other external apps?

Sales leadership wants a Slack message in the deals channel when an Opportunity over $1M closes.

Intermediatefloworder-of-executionvalidation-rules

What happens when a flow and a validation rule both act on the same field?

A before-save flow sets Discount to 0 for certain Accounts, and a validation rule says Discount must be over 5 for a product family.

Intermediateflowdata-qualityscheduled

How would you build a nightly data-quality job in Flow?

Contacts missing email or with invalid phone formats should be flagged for owners every night.

Beginnerflowgovernancedocumentation

How do you document flows so others can maintain them?

Half of the org's flows have names like "New Flow 3" and no descriptions.

Intermediateflowperformancebefore-save

What is a "fast field update" and why is it fast?

An interviewer asks why before-save flows are recommended for field updates.

Advancedflowdebuggingrecursion

A record-triggered flow on Lead runs twice for one save. Why?

Debug logs show the same flow interview started twice when a Lead is created via Web-to-Lead.

Intermediateflowdata-qualityduplicate-rules

Flow vs Validation Rule vs Duplicate Rule — which tool for which data-quality need?

Requirements: block Contacts without email, auto-format phone numbers, and stop duplicate Accounts.

Intermediateflowscheduledscoring

How do you build an "Account health score" with Flow?

Customer success wants a score from open cases, product usage and days since last contact.

Intermediateflowvalidationcustom-error

What is the "Custom Error" element in Flow?

You need to block deletion of an Account if it has active contracts.

Beginnerflowrecord-triggeredcreate

How do you run logic only on the first save of a record?

Welcome tasks should be created only when a Contact is first created.

Intermediateflowreusesubflow

How do you share logic between screen flows and record-triggered flows?

Discount validation is implemented in a screen flow and copied into a record-triggered flow; they drift apart.

Intermediateflowpicklistsmulti-select

How do you handle multi-select picklists in Flow?

A flow must check whether "Email" is one of the selected values in a multi-select Preferred Channels field.

Beginnerflowmigrationprocess-builder

What are the main differences between Workflow Rules, Process Builder and Flow?

A candidate is asked about Salesforce automation history.

Intermediateflowrelated-recordsclone

How do you build a flow to clone a record with its children?

Users want to clone an Opportunity including its line items and contact roles.

Advancedflowknowledgeexperience-cloud

How do you build a screen flow for case deflection on a help site?

Before customers create a case, the site should suggest relevant articles.

Advancedflowdeploymentversions

What happens to running flows during a Salesforce release or deployment?

You deploy a new flow version while thousands of scheduled path items are pending.

Beginnerflowformulasnulls

How do you handle null values in flow formulas and decisions?

A flow fails with "The flow tried to update these records: null" or formulas return blank.

Advancedflowsecurityerror-emails

How do you prevent sensitive data from appearing in flow error emails?

Flow fault emails include customer personal data and go to a shared mailbox.

Intermediateflowdesignscheduled

How do you choose between a scheduled path and a schedule-triggered flow?

You need renewal reminders 60 days before contract end, for about 50,000 active contracts.

Advancedflowsecurityrun-context

What are the risks of using "System Context Without Sharing" in a flow?

A screen flow lets support reps look up any customer's payment history, which bypasses the sharing model.

Intermediateflowsyncrelated-records

How do you use Flow to keep a field in sync across a lookup relationship?

Each Contact shows the Account's Customer Tier and must update when the Account tier changes.

Intermediateflowescalationcase

Explain how you would build an escalation when a Case is reopened three times.

Service leaders want to flag cases that keep being reopened.

Advancedflowgovernancecode-review

What should be in a code review checklist for flows?

The team is introducing peer review for admin-built flows.

Advancedflowintegrationplatform-events

How do you send a record to an external system when it is approved, without code?

Approved purchase requests must reach the procurement system within minutes.

Intermediateflowperformanceentry-conditions

What makes a good entry condition, and why does it matter for performance?

An Opportunity flow with no entry conditions starts on every save and immediately exits on a decision.

Beginnerflowsubflow

Can a flow call another flow, and how?

Quick Flow question.

Beginnerflowemail

How do you send an email to the record owner from a flow?

Notify owners when a case becomes high priority.

Intermediateflowconflictsorder

What happens if two record-triggered flows update the same field?

A field ends with an unexpected value.

Beginnerflowcross-object

How do you reference a related record's field in a record-triggered flow?

Use the Account's Industry from a Case flow.

Intermediateflowdelete-trigger

How do you build a flow that runs when a record is deleted?

When an Opportunity is deleted, log the deletion to an audit object.

Intermediateflowlimitsget-records

What is the "Get Records" limit when retrieving large collections?

A Get Records returns 60,000 records and fails.

Beginnerflowvariables

How do you handle optional inputs in an autolaunched flow?

A subflow should work with or without a discount value.

Intermediateflowbusiness-hoursdates

How do you create a task due in 3 business days?

Follow-up tasks should skip weekends.

Intermediatefloworchestration

What is a stage in Flow Orchestration?

Quick orchestration question.

Beginnerflowpermissionsscreen-flow

How do you show a different screen based on user profile?

Managers see an approval section; reps do not.

Beginnerflowrelated-records

How do you update a field on all child records when the parent is closed?

When a Project closes, all tasks should be marked Cancelled.

Advancedflowapexrun-context

What does "Run in System Mode" mean for flows called from Apex?

A flow called from Apex respects different permissions than expected.

Beginnerflowbefore-savecounters

How do you implement a counter that increments on each update?

Track how many times a lead's status changed.

Intermediateflowmigrationscheduled

How do you migrate a time-based workflow action to Flow?

A workflow sends a reminder 7 days before contract end.

Beginnerbasicsflow

What is a flow interview?

Basic Flow terminology.

Intermediateflowsecurityaccess

How do you prevent a screen flow from being used outside its intended page?

A sensitive admin flow could be launched by URL.

Intermediateflowmulti-currency

How do you handle multi-currency values in flows?

A flow compares Amount against a threshold in USD.

Advancedflowperformancemonitoring

How can admins monitor flow performance?

Leadership wants to know which flows slow down saves.

Beginnerflowtext-templates

What is the difference between a Text Template and a formula for building email bodies?

A flow emails a formatted summary.

Advancedflowreusegeneric

How do you reuse a flow across multiple objects?

The same logging logic is needed on 6 objects.