Flow & Automation Interview Questions
Record-triggered, screen and scheduled flows, fault handling, and Flow vs Apex decisions.
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
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
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.
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.
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.
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.
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.
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.
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%.
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.
How do you design fault handling in flows?
Users see "An unhandled fault has occurred in this flow" and admins receive cryptic emails.
When should you choose Apex over Flow?
A requirement involves complex pricing rules across 6 objects, large data volumes and a callout with retries.
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.
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.
What are Flow Tests and what can they cover?
A team wants regression tests for critical flows before each release.
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.
What is a schedule-triggered flow and what are its limits?
Every night, contracts expiring in 30 days need a renewal Opportunity created.
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.
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.
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.
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.
What governor limits matter most for flows?
A flow works for single records but fails during a 10,000-record integration update.
How do you build a reactive screen flow?
On a quote screen, the total should update instantly when the user changes quantity or discount.
How do you embed a custom LWC in a screen flow?
The standard components cannot show a searchable product picker with images.
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.
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.
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.
How do you pass data between a parent flow and a subflow?
Several flows need the same "calculate shipping fee" logic.
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.
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.
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.
What are the main screen flow components every admin should know?
You are designing a 3-screen intake form.
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.
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.
How do you lock or unlock records from automation?
Contracts must become read-only once signed, except for the legal team.
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.
How do you build round-robin assignment with Flow?
New Leads should be distributed evenly among 6 inside sales reps who are currently active.
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.
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.
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.
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.
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.
What are the basic building blocks of a flow?
A fresher is asked to explain Flow Builder.
What is the difference between a variable and a collection variable?
You need to store a list of Contacts to update.
How does a Decision element work?
Route a Case differently by priority.
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.
How do you loop through records and avoid common mistakes?
You must set a field on every child record of an Account.
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.
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.
What are global variables like $Record, $User and $Flow?
You need the current user's manager and the current time in a flow.
How do you delete records with a flow safely?
Draft Quotes older than 90 days should be removed nightly.
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.
What are flow interview limits and how do paused interviews affect them?
A flow with Wait elements creates thousands of paused interviews each week.
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.
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%.
How do you run a flow from Apex?
A trigger framework needs to reuse an admin-maintained autolaunched flow for discount calculation.
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.
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.
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.
How do you test a flow with different users?
A screen flow works for admins but fails for sales reps.
What is the difference between Assignment "Equals" and "Add"?
A collection ends up with only one record after a loop.
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.
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.
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.
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.
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.
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.
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.
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.
What is the difference between Flow and Apex for handling large data volumes?
You must recalculate a score on 3 million Contacts every week.
How do you implement field defaulting that depends on related records?
New Cases should copy the support tier from the Account's active entitlement.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
What is a "fast field update" and why is it fast?
An interviewer asks why before-save flows are recommended for field updates.
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.
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.
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.
What is the "Custom Error" element in Flow?
You need to block deletion of an Account if it has active contracts.
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.
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.
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.
What are the main differences between Workflow Rules, Process Builder and Flow?
A candidate is asked about Salesforce automation history.
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.
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.
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.
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.
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.
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.
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.
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.
Explain how you would build an escalation when a Case is reopened three times.
Service leaders want to flag cases that keep being reopened.
What should be in a code review checklist for flows?
The team is introducing peer review for admin-built flows.
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.
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.
Can a flow call another flow, and how?
Quick Flow question.
How do you send an email to the record owner from a flow?
Notify owners when a case becomes high priority.
What happens if two record-triggered flows update the same field?
A field ends with an unexpected value.
How do you reference a related record's field in a record-triggered flow?
Use the Account's Industry from a Case flow.
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.
What is the "Get Records" limit when retrieving large collections?
A Get Records returns 60,000 records and fails.
How do you handle optional inputs in an autolaunched flow?
A subflow should work with or without a discount value.
How do you create a task due in 3 business days?
Follow-up tasks should skip weekends.
What is a stage in Flow Orchestration?
Quick orchestration question.
How do you show a different screen based on user profile?
Managers see an approval section; reps do not.
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.
What does "Run in System Mode" mean for flows called from Apex?
A flow called from Apex respects different permissions than expected.
How do you implement a counter that increments on each update?
Track how many times a lead's status changed.
How do you migrate a time-based workflow action to Flow?
A workflow sends a reminder 7 days before contract end.
What is a flow interview?
Basic Flow terminology.
How do you prevent a screen flow from being used outside its intended page?
A sensitive admin flow could be launched by URL.
How do you handle multi-currency values in flows?
A flow compares Amount against a threshold in USD.
How can admins monitor flow performance?
Leadership wants to know which flows slow down saves.
What is the difference between a Text Template and a formula for building email bodies?
A flow emails a formatted summary.
How do you reuse a flow across multiple objects?
The same logging logic is needed on 6 objects.