generating-validation-rule

Installation
SKILL.md

When to Use This Skill

Use this skill when you need to:

  • Create validation rules to enforce data quality
  • Prevent invalid records from being saved
  • Generate validation rule metadata with formulas
  • Add business logic validation to objects
  • Troubleshoot deployment errors related to validation rules

Specification

ValidationRule Metadata Specification

📋 Overview

Validation Rules are declarative metadata components used to enforce data quality and business logic in Salesforce. They evaluate a formula expression when a record is saved and prevent the save operation if the expression returns TRUE.

🎯 Purpose

-Enforce business rules at the data layer -Prevent invalid or incomplete records from being saved

Related skills

More from forcedotcom/afv-library

Installs
885
GitHub Stars
290
First Seen
Mar 26, 2026