Apex Aide apexaide

Validation Checker Flow Action

By Eric Smith· ericsplayground.wordpress.com· ·Intermediate ·Admin ·3 min read
Summary

This flow action enables Salesforce Flows to pre-validate records against validation rules, required fields, and text size limits before attempting DML operations like create or update. It helps prevent unhandled faults by catching errors early and reporting them through customizable error messages or fault paths. The action can optionally commit records after validation succeeds, returning new record IDs for inserts. This improves Flow reliability and user experience by avoiding crashes due to input errors.

Takeaways
  • Use this action before Create or Update Records in Flow to pre-check validation errors.
  • It supports single records or record collections with detailed error messages.
  • Leverage the action in Fault Paths to handle validation faults gracefully.
  • Optionally commit records within the action when no validation errors occur.
  • Include a record identifier field to clarify which records failed validation.

Validation Checker Flow Action Created by  Eric Smith See https://unofficialsf.com/validation-checker-flow-action/ for the most up to date information on this component. Don’t your users just love it when they see this on their screen? The fun really starts when you get this email in your inbox. You could certainly take the time and effort to add a bunch of decision elements and recreate all of your validation rules in your flow.  I bet it would be even more exciting trying to keep all of that maintained.   Wouldn’t it be nice if your Flows could check for and trap validation rule failures, missing required fields and text overruns? Well now they can with this simple Check Validation flow action.   Before you attempt a Create Records or Update Records element in your Flow, add this simple Flow Action and pass it a single record or a collection of records.

Validation & Data QualityUncategorized