Skip to content

Check strategic Account readiness with Apex

Configure a custom Apex Check that combines Contact coverage, open pipeline, recent activity, and billing-address completeness into a numeric readiness score.

The score combines Account fields and several related-record checks. Reviewed Apex keeps the weights, queries, and result contract together and covered by tests.

  • Have a Salesforce developer review, deploy, and test AccountStrategicReadinessCheck from the developer reference. This class is an integration example, not a packaged runtime class.
  • Approve the score weights, minimum score, activity window, and blank-value behavior.
  • Confirm intended users can read all Account and related-record data used by the score.
  • Save configuration inactive until Apex tests and validation succeed.

Use or create the Account Apex Readiness Check Set and leave it inactive.

Then create:

Salesforce fieldValue
LabelStrategic Account Is Ready
Record Health Check NameStrategic_Account_Is_Ready
Check SetAccount Apex Readiness
Check TitleStrategic Account is ready
Evaluation TypeVerify with Apex
Apex ClassAccountStrategicReadinessCheck
Apex Parameters (JSON){"minScore": 80, "activityDaysBack": 60}
Failure SeverityCritical
Message When FailedThis strategic Account’s readiness score is below the approved minimum.
Fix MessageReview Contact coverage, open pipeline, recent activity, and billing address.
Evaluation Order30
ActiveUnchecked until validation succeeds

Leave action fields blank unless your org has one tested playbook or report that covers all four readiness areas.

  1. Require a passing Apex test deployment.
  2. Run the configuration-validation Flow.
  3. Activate only after both checks succeed.
  4. Assign Record Health Check Card User.

Test scores below, equal to, and above 80, including missing related data. Repeat as a restricted user and confirm the score does not expose inaccessible data.

The Apex class returns the outcome and display values after applicability and prerequisite checks.

Result detailMeaning
PASSThe class reports that the configured business rule is satisfied.
FAILThe class reports a normal business-rule failure, and the card shows the configured guidance.
SKIPPEDThe Check does not apply or a prerequisite prevents the Apex class from running.
FoundThe class-provided value that explains the observed record state.
ExpectedThe class-provided target or comparison value.

Confirm the class name, passing Apex tests, JSON parameter names and ranges, and access to every record and field used in the score.

See Strategic readiness implementation for scoring rules, complete source, tests, context/result contracts, and customization.