Declarative automation and AI agents are top priorities in Salesforce interviews. Review these Salesforce Flow and Agentforce interview questions and answers.
1. When should you use a Before-Save (Fast Field Updates) vs. After-Save Record-Triggered Flow?
Answer: Use a Before-Save Flow to update fields on the same record that triggered the flow—it runs before the database save and is up to 10x faster without triggering extra save cycles. Use an After-Save Flow when you need to create/update related records, send emails, or make asynchronous callouts.
2. Why did Salesforce replace Workflow Rules and Process Builder with Flow?
Answer: Salesforce Flow unifies automation into a single, high-performance engine with before-save optimization, loops, subflows, fault paths, and better bulkification—avoiding the performance bottlenecks and maintenance sprawl of legacy Workflow Rules and Process Builder.
3. How do you handle errors gracefully in Salesforce Flows?
Answer: Connect a Fault Path from DML, Get Records, or Action elements to a logging subflow, custom error element (in record-triggered flows), or admin alert so users receive friendly messages and failures are recorded cleanly.
4. What are Screen Flows and Subflows used for?
Answer: Screen Flows guide users through interactive, multi-step UI wizards embedded on Lightning pages, Experience Cloud sites, or Quick Actions. Subflows encapsulate reusable logic (such as error logging or approval routing) so multiple parent flows can call them without duplicating steps.
5. How do Agentforce Topics and Actions work in Salesforce?
Answer: In Agentforce, Topics define the scope, classification rules, and instructions for a specific job (such as order management), while Actions connect the reasoning engine to Flows, Apex classes, or Prompt Templates so the agent can execute real CRM tasks securely.

