generating-validation-rule

Create and validate Salesforce validation rules with core metadata properties.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/cchrisv/professorFlowVisualPicker --skill generating-validation-rule
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-validation-rule
Source: https://github.com/cchrisv/professorFlowVisualPicker/tree/main/.agents/skills/generating-validation-rule
Command: npx skills add https://github.com/cchrisv/professorFlowVisualPicker --skill generating-validation-rule

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill enables administrators and developers to create, modify, and validate Salesforce Validation Rules to ensure data quality and enforce business rules at the data layer.

Core Features & Use Cases

  • Declarative rule definition: Manage core ValidationRule properties such as fullName, active, errorConditionFormula, and errorMessage.
  • Formula guidance: Provide best-practice guidelines and safeguards for writing robust formulas, including handling XML in metadata and common pitfalls.
  • Use Case: Use to prevent invalid data from being saved, troubleshoot deployment errors, and enforce field-level constraints across objects.

Quick Start

Create a new validation rule that enforces the Email field to be unique on the Account object.

Frequently Asked Questions about generating-validation-rule

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Salesforce validation rule to enforce data quality?

A validation rule in Salesforce prevents invalid data from being saved by evaluating an error condition formula. It enforces field-level constraints and business logic at the data layer, ensuring data integrity across objects.

How do I troubleshoot deployment errors for Salesforce validation rules?

Troubleshooting validation rule deployment errors involves checking the errorConditionFormula syntax and ensuring proper XML metadata handling. Common pitfalls include incorrect formula structure or missing required properties in the deployment package.

What is the best way to handle XML metadata when deploying validation rules?

Handling XML metadata for validation rules requires adhering to best-practice guidelines for formula syntax and structure. You must ensure core properties like fullName and errorMessage are correctly formatted to avoid deployment failures.

Can I use validation rules to enforce field-level constraints across multiple Salesforce objects?

Yes, validation rules can enforce field-level constraints across various Salesforce objects. You apply the errorConditionFormula to evaluate data on specific objects, preventing saves when criteria are met and displaying a custom errorMessage.

Why does my validation rule formula keep failing during deployment?

Validation rule formula deployments often fail due to XML formatting issues or incorrect errorConditionFormula syntax. You must verify that all required metadata properties are present and that the formula adheres to Salesforce best-practice guidelines.