Skip to content

Check whether an Account meets a program minimum

Create a Formula Check that compares Number of Employees with a confirmed minimum of 10. The card shows the current employee count beside the required minimum so the result is easy to understand.

Number of Employees is on the Account, and the threshold is a value in the Check, so Verify with a formula handles the comparison without SOQL or Apex. An Account below the minimum is still a valid Account, so this guidance should not block unrelated saves with a Validation Rule.

  • Confirm Employees under Setup → Object Manager → Account → Fields & Relationships.
  • Confirm that Employees is the approved source and that 10 is the approved program minimum.
  • Decide how blank Employees should behave. This example treats blank as zero.
  • Confirm that intended users can read Employees.
  • Save new configuration inactive and validate it before activation.

You can add this Check to an existing Account Check Set. To create one, open Setup → Custom Metadata Types → Record Health Check Set → Manage Records, select New, and enter:

Salesforce fieldValue
LabelAccount Data Quality
Record Health Check Set NameAccount_Data_Quality
ObjectAccount
Card TitleAccount Data Quality
Card SubtitleConfirm employee count meets the program minimum.
When Checks RunWhen the user clicks Run
Summary DisplayShow below checks
Found/Expected DisplayShow for every check
ActiveUnchecked until validation succeeds

Open Setup → Custom Metadata Types → Record Health Check → Manage Records, select New, and enter:

Salesforce fieldValue
LabelEmployee Count Meets Minimum
Record Health Check NameEmployee_Count_Meets_Minimum
Check SetAccount Data Quality, or your existing Account Check Set
Check TitleEmployee count meets minimum
Evaluation TypeVerify with a formula
Pass ConditionBLANKVALUE(NumberOfEmployees, 0) >= 10
Display: Found FormulaBLANKVALUE(NumberOfEmployees, 0)
Display: Expected Formula10
Formula Result TypeAutomatic
Failure SeverityWarning
Message When Failed{!record.Name fallback="This Account"} is below the staffing minimum. Confirm the employee count before deciding whether it qualifies.
Message When Unable To EvaluateUnable to compare employee count. Confirm access to Employees.
Fix MessageCorrect Employees if it is inaccurate. If it is below 10, the Account does not meet this requirement.
Action LabelEdit employee count
Action URL/lightning/r/Account/{!record.Id}/edit
Evaluation Order80
ActiveUnchecked until validation succeeds

Change 10 in both the Pass Condition and Display: Expected Formula when your approved threshold is different. Found and Expected explain the result; only the Pass Condition decides whether it passes.

  1. Run the configuration-validation Flow.
  2. Correct every error and confirm that the threshold is approved.
  3. Set the Check and Check Set to Active only after validation succeeds.
  4. Add Record Health Check to the Account Lightning record page and select the Check Set.
  5. Assign Record Health Check Card User to the people testing the card.
EmployeesExpected resultFoundExpected
BlankWarning010
9Warning910
10Pass1010
25Pass2510

Repeat a failing case with the same field access intended users receive. If Employees is unreadable, the Check must show Unable to Check instead of treating the value as zero.

The card evaluates the formula and compares its result with the configured expected value.

Result detailMeaning
PASSThe formula result satisfies the configured comparison.
FAILThe formula result does not satisfy the comparison, and the card shows the configured guidance.
SKIPPEDThe Check does not apply or a configured prerequisite did not pass.
FoundThe evaluated formula result for the current record.
ExpectedThe configured fixed value or evaluated expected formula.
What you seeCheck this first
A blank value should be unknown, not zeroReplace the formula with your approved blank-handling rule
Found and Expected disagree with the resultKeep the display formulas synchronized with the Pass Condition
Unable to CheckConfirm Read access to Employees
A passing result has no individual rowReview the Check Set’s Passed Checks display setting