The independent daily for Salesforce admins, developers and architects

Curated by Abhinav (opens in a new tab)

Handling Flow errors with Fault paths, logging and notifications (opens in a new tab)

You will learn why a Flow can fail without anyone noticing, and five practices for using Fault Paths to log, notify and test failures.

Why read this

The advice is standard but practical for admins maintaining automation.

  1. Data element fails
  2. Fault Path runs
  3. Log failure record
  4. Notify admin or owner
How a failed Flow element is handled once a Fault Path is in place

A Fault Path is the branch a Flow takes when one of its elements fails, such as a record update blocked by a Validation Rule, a create that trips a duplicate rule, or a lookup that returns nothing. Without one, a Screen Flow shows the user a generic error, while a Record-Triggered Flow rolls back quietly and tells no one. The author argues that failures are easy to miss for this reason and that a missing branch is usually the cause.

The article gives five practices. Add a Fault Path to every data element, since failures often come from changes made elsewhere, such as a new Validation Rule or a permission change. Log each failure to a Custom Object, capturing the Flow name, element, record ID and the $Flow.FaultMessage value. Pair the log with a notification to an admin group or record owner so failures are seen the same day. Decide for each Flow whether a failure should stop the process or let it continue and flag the record for follow-up. Finally, test the failure paths in Flow Builder’s debug mode by feeding in data that violates a rule before each deployment.

The author also notes that a Flow can fail for different reasons depending on whether it runs in system or user context, because of Sharing Rules, field-level security or missing permissions. If a Flow fails only for some users, the run context should be checked first.

Read the original at dev.to (opens in a new tab)

Worth reading?

Send Custom Notifications in Salesforce using Flow Builder without writing Apex (opens in a new tab)

You will learn how to configure Notification Builder and build a Flow that pushes targeted alerts to desktop and mobile users.

Why read this

The guide covers recipient targeting, deep linking, and best practices to avoid notification spam.

The article explains how to implement Custom Notifications in Salesforce using Flow Builder instead of Apex. It begins by outlining the prerequisite setup in Notification Builder, where administrators define a notification type and select delivery channels such as desktop or mobile.

It then walks through creating a Record-Triggered Flow with entry criteria to control when alerts fire. The guide details how to use the Send Custom Notification action element, wire up the notification type ID, construct dynamic titles and bodies with formula resources, and populate recipient collections using Get Records. It also explains how to set a target ID to enable deep linking directly to the relevant record.

A practical scenario demonstrates using a scheduled Flow to alert managers about stalled high-value opportunities. The author concludes with implementation tips, emphasizing concise titles, aggressive filtering to prevent spam, verifying sharing settings for non-admin testers, and reserving mobile push notifications for urgent escalations.

Read the original at dev.to (opens in a new tab)

Worth reading?