Skip to content

Create your first Check

Create an Account health check that answers one question: Does this Account have a Billing City? You will save the configuration inactive, validate it, add the card to an Account record page, and test both results.

You need:

  • Record Health Check installed in a sandbox;
  • Record Health Check Admin;
  • Customize Application, or equivalent access to manage Custom Metadata;
  • access to edit Lightning record pages; and
  • Read access to Account and Billing City.

The person testing the finished card needs Record Health Check Card User plus access to the Account and Billing City. You do not need Apex or command-line tools.

RecordNameWhat it does
Check SetAccount ReadinessControls the card on the Account page
CheckBilling City Is PopulatedReviews Billing City and shows guidance when it is blank

Keep both records inactive until validation succeeds.

  1. From Setup, enter Custom Metadata Types in Quick Find.
  2. Open Custom Metadata Types.
  3. Next to Record Health Check Set, select Manage Records.
  4. Select New.
  5. Enter these values.
Salesforce fieldValue
LabelAccount Readiness
Record Health Check Set NameAccount_Readiness
ObjectAccount
Card TitleAccount Readiness
When Checks RunWhen the user clicks Run
Summary DisplayShow below checks
Run Button DisplayShow label and icon
Run Button LabelRun
Rerun Button LabelRerun
Run Button Iconutility:play
ActiveUnchecked
  1. Select Save.

utility:play is the name of a standard Salesforce icon. It is not a file upload.

  1. Return to Custom Metadata Types.
  2. Next to Record Health Check, select Manage Records.
  3. Select New.
  4. Enter these values.
Salesforce fieldValue
LabelBilling City Is Populated
Record Health Check NameBilling_City_Is_Populated
Check SetAccount Readiness
Check TitleBilling City is populated
Evaluation TypeVerify with a formula
Pass ConditionNOT(ISBLANK(BillingCity))
Failure SeverityWarning
Message When Failed{!record.Name fallback="This Account"} is missing Billing City.
Fix MessageEdit the billing address, then run the Check again.
Action LabelEdit account
Action URL/lightning/r/Account/{!record.Id}/edit
Evaluation Order100
ActiveUnchecked
  1. Select Save.

The formula reads Billing City on the open Account. The message uses the Account Name when the running user can read it and uses “This Account” otherwise. The action opens Salesforce’s standard Account edit page; it does not save a change.

Run Validate Record Health Check Configuration from your reusable configuration-validation Flow. If you do not have one, follow Build the configuration-validation Flow.

Continue only when:

  • Configuration Is Valid is true;
  • Error Count is zero; and
  • you have reviewed every warning.

Return to the two Custom Metadata records, select Edit, check Active, and save each one. Activating only after validation keeps unfinished configuration out of Lightning App Builder and record-page runs.

  1. Open an Account record in the sandbox.
  2. Select Setup → Edit Page.
  3. Drag Record Health Check onto the page.
  4. In the component properties, select Account Readiness.
  5. Save and activate the page for the intended app, record type, and profiles.
  6. Return to the Account and refresh the page.

The card should show Account Readiness and a Run button. If Account Readiness is not in the picker, confirm that the Check Set is active and its Object is Account.

Use an Account that is safe to change in the sandbox.

TestChangeExpected card result
Needs attentionClear Billing City, save, and select RunWarning, the missing-city message, the fix message, and Edit account
PassEnter Billing City and savePass after the completed card refreshes; select Rerun if needed

Open Edit account during the first test and confirm that it opens the same Account. Restore the test data when finished.

What you seeCheck this first
The component is missingConfirm that the Lightning page is activated for the current app and profile
Account Readiness is not in the pickerConfirm that the Check Set is active and Object is Account
The card has no rowsConfirm that the Check is active and belongs to Account Readiness
Unable to CheckConfirm that the running user can read Account and Billing City
A Setup change is not visibleSave the Custom Metadata record, then refresh the record page

For restricted troubleshooting detail, follow Troubleshoot a run.

The first walkthrough uses Salesforce labels wherever possible. Use these references when you need API names, limits, or exact runtime behavior: