Big Idea or Enduring Question:
How do you validate user input for Screen Flow Components?
Input Validation in Salesforce Flow allows a system administrator to define custom logic and error messages to ensure data integrity. A Validation can contain a formula or expression that evaluates the data in one or more fields and returns a value of True or False. Validation also includes an error message that displays when the rule returns a value of True – indicating that inaccurate data is being entered.
In the past, I have written a few articles on Validation Rules and Salesforce Flow. Why not check them out while you are at it?!
Objectives:
After reading this article, you will be able to:
- Add validation to check what a user enters in a flow screen component and display an error message to guide the user
- Display colorful error message
- and much more
Business Use Case
Steven Greene, a Lead System Administrator at Universal Containers (UC), received a requirement to create a Screen Flow with the following fields:
- City – Only alphabet characters (A-Z or a-z) are allowed
- Phone – Minimum 10 and Maximum 15
Automation Champion Approach (I-do):
To solve the above business use case, will use Screen Flow.
Before discussing the solution, let me show you a diagram of a Process Flow at a high level. Please spend a few minutes to go through the following Flow diagram and understand it.
Let’s begin building this automation process.
Guided Practice (We-do):
There are 4 steps to solve Steven’s business requirement using Screen Flow. We must: Read the rest of this entry!