Salesforce Decode
Salesforcedecode
All topics

Learn Flow & Automation

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

120 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 28 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.

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.

Beginnerflowscreen-flow

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

You are designing a 3-screen intake form.

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.

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.

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.

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.

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.

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.

Beginnerflowassignment

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

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

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.

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.

Beginnerflowmigrationprocess-builder

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

A candidate is asked about Salesforce automation history.

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.

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.

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.

Beginnerflowvariables

How do you handle optional inputs in an autolaunched flow?

A subflow should work with or without a discount value.

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.

Beginnerflowbefore-savecounters

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

Track how many times a lead's status changed.

Beginnerbasicsflow

What is a flow interview?

Basic Flow terminology.

Beginnerflowtext-templates

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

A flow emails a formatted summary.