Validation in Salesforce Flow
2K views
Jan 28, 2025
Using Custom Error Flow Component, we can do record validations in the Salesforce Flow. Blog Post: https://www.infallibletechie.com/2025/01/validation-in-salesforce-flow.html#google_vignette
View Video Transcript
0:07
hello everyone in this video we are
0:09
going to see how to validate records in
0:14
Salesforce using flow for example if I
0:18
edit an account record and then if I
0:23
select none so I'm not selecting any
0:26
industry value I'm setting it to blank
0:28
so if I set it to blank and then if I
0:30
try to save it is saying that industry
0:32
is required we can achieve this using uh
0:36
Salesforce validation rules also but in
0:39
this video we are going to see how to
0:41
achieve the same using record triggered
0:45
flow in Salesforce so I created a record
0:48
triggered
0:50
flow the name is account validation it
0:53
will run before save and then it is
0:55
active this is the flow I have set fast
1:00
field updates so that it will run in uh
1:03
before DML
1:06
context using decision flow element I'm
1:10
checking whether the industry record is
1:12
populated or
1:13
not from the triggering account record
1:16
I'm checking whether the industry is
1:18
blank if it is blank then it will go
1:21
into industry not populated path here I
1:25
am making use of custom error message
1:28
Salesforce flow component to throw the
1:31
error if you want to throw the error on
1:33
a specific field we have the same option
1:36
in uh um Salesforce validation rules
1:40
also so you can
1:42
select the field
1:46
here so you can save it you can activate
1:50
it and then you should be able
1:52
to test it
1:56
out previously it was on top of the page
1:58
the error message was displayed so now
2:01
if I change it to blank and then if I sa
2:05
the message will come just below the
2:10
field so make use of custom error
2:12
message Salesforce flow
2:14
component to do the validation rules in
2:17
Salesforce flow Salesforce flow gives
2:20
more F flexibility when compared to the
2:23
standard Salesforce validation rules so
2:26
we can make use
2:28
of um this Salesforce flow also to
2:32
validate the
2:39
records I hope it was
2:44
helpful thank you for watching
#Internet Software