function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TLFTLF 

Are validation rules packagable?

I have a package that adds some custom fields to one of the standard object types (the Opportunity object). These fields have custom validation rules associated with them. When I view the validation rule within my Developer Edition instance where I created the package, I see the symbol next to the validation rule that indicates it is contained within my package, however, when I deploy the package to a different Salesforce instance, the fields are added to the Opportunity object, but the validation rules are not present. Has anyone encountered problems with packaging validation rules associated with custom fields?
shillyershillyer

Validation rules are included in the package with Custom Objects, but not Standard Objects like Opportunity.

 

Best,

Sati

TLFTLF
Thanks. That explains it. Not exactly the answer I was looking for :smileysad: