Fault Connector in Salesforce Flow

A fault connector is a type of connector used in Salesforce flows that allows you to handle errors and exceptions that may occur during the flow’s execution.

It allows you to take action in response to different types of errors, such as sending an email notification or displaying an error message to the user.

Learn more about Salesforce Flow Bootcamp

In this blog, I will be creating a Contact record using Screen flow and will be utilizing fault connectors to capture the errors while executing the flow.

The screen flow is presented on a screen using either a lightning page or a utility bar.

Using a Validation rule I will restrict the creation of the Contact record if the Phone field is blank.

Fault Connector VR

As you can see using the screen element in we are capturing the First Name, Last Name, and Phone number of the user.

Screen element of Flow

Using create record element we will create a Contact record.

To know more about create record elements check out our blog on Create Record elements in Salesforce flow

To display the error message to the user we will connect the Create Record element to a screen element as shown below:

Fault Connector from Create record element to screen element

Note that fault connectors are exclusive to Data and Action elements. If you wish to create a fault connector, you can do so by dragging from the element twice.

Display the error message on the screen element connected with the fault connector as follows.

Fault connector error msg

Screen flow input from the user

Screen flow input

Error message displayed on screen component using Fault Connector 👇

Error msg from Fault Connector

NOTE: You can use screen element to show error message only when you are creating a screen flow. For other flows type(record triggered, schedule triggered, non-triggered flows) you can Post to chatter, Send an email or create a new record to log error details.

Advantages of using Fault Connector:

  1. Better error handling
  2. Improved user experience
  3. Customizable error notifications
  4. Better flow performances

Want to Learn Salesforce Flows? Checkout our Salesforce Flow Course

Get a complete Roadmap To Learn Salesforce Admin And Development

Share Now

Harshit is a 5x certified Salesforce developer currently working at UST. He is a storyteller at heart, with a knack for crafting compelling content on LinkedIn and penning insightful blogs on Salesforce technology.

Similar Posts

One thought on “Fault Connector in Salesforce Flow

Leave a Reply

Your email address will not be published. Required fields are marked *