generating-validation-rule

Create, modify, and validate Salesforce Validation Rules with formula metadata.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill aids users in the creation, modification, and validation of Salesforce Validation Rules, addressing common issues with data quality, business logic, and error messages.

Core Features & Use Cases

  • Validation Rule Creation: Develop rules to enforce data quality and business logic.
  • Field Validation: Prevent invalid records from being saved by evaluating record data.
  • Formula Metadata Generation: Provide detailed metadata for formulas used in validation rules.
  • Troubleshooting: Help diagnose and resolve issues related to validation rules and deployment errors.

Quick Start

Create a validation rule for the 'Opportunity' object that enforces a required field 'CloseDate'.

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 required fields?

To create a Salesforce validation rule, you develop a formula that evaluates record data and prevents saving when conditions are unmet. This skill generates the logic and metadata needed to enforce required fields and business logic on objects like Opportunity.

Why does my Salesforce validation rule formula keep failing on deployment?

Salesforce validation rule deployment failures often stem from incorrect formula metadata or syntax errors. This skill troubleshoots validation rules by diagnosing formula logic and providing accurate metadata to resolve deployment and record validation issues.

What is the best way to validate data quality and business logic in Salesforce records?

Validating data quality in Salesforce requires building validation rules that evaluate record data against business logic before save. This skill creates robust enforcement rules and generates the necessary formula metadata to prevent invalid records.

Can I modify existing Salesforce validation rules without breaking current data enforcement?

You can modify existing Salesforce validation rules by adjusting the formula logic while maintaining data enforcement. This skill supports the modification and validation of rules to ensure business logic remains intact and records are evaluated correctly.

Does this approach support generating metadata for complex Salesforce validation formulas?

Generating metadata for Salesforce validation formulas is fully supported. This skill provides detailed formula metadata for validation rules, ensuring that complex business logic and data quality requirements are accurately captured for record evaluation.

When do I need to use a validation rule instead of other data quality enforcement methods in Salesforce?

You need a validation rule when you must evaluate record data actively before it is saved to enforce specific business logic. This skill creates validation rules that prevent invalid records, ensuring data quality at the point of entry.