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
SiriusBlackOpSiriusBlackOp 

Package Pre-Installation Validation.

Is there a way to pre-validate data in a salesforce instance prior to an installation occuring?
 
For instance, if I wanted to verify data by first running a query and if a problem is identified then raise an error.  Is there a way to do that?
ckempckemp
Just put your validation in your tests.  They will be run before the client installs it (assuming they don't check off "Ignore Apex errors" in the last step.)