Skip to content

Check whether an Account has meaningful open pipeline

Setup reference: Query Check configuration

Create a Query Check that passes when at least one visible open Opportunity has an Amount greater than 10% of the Account’s Annual Revenue. Accounts without positive Annual Revenue are skipped.

The Check compares related Opportunity records with a value calculated from the Account. Verify with a query supports that record formula and can pass when any returned Opportunity qualifies.

  • Confirm that Annual Revenue is maintained consistently and that 10% is an approved threshold.
  • Confirm intended users can read Account Annual Revenue and Opportunity Amount.
  • Decide whether pipeline with a blank Amount should be ignored or treated as a problem. This query excludes blank Amounts.
  • Save new configuration inactive and validate it before activation.

Use an Account Check Set such as Account Related Record Review. If you create it now, use Object Account, run on click, show Found/Expected on demand, and leave Active unchecked until validation succeeds.

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

Salesforce fieldValue
LabelHas Significant Open Opportunity
Record Health Check NameHas_Significant_Open_Opportunity
Check SetAccount Related Record Review
Check TitleHas significant open Opportunity
Evaluation TypeVerify with a query
Source QuerySELECT Amount FROM Opportunity WHERE AccountId = {!record.Id} AND IsClosed = false AND Amount != null
Source Query FieldAmount
How To Read Query ResultsAny record passes
Comparison OperatorGreater than
Expected Value Comes FromRecord formula
Expected Value (Formula)AnnualRevenue * 0.1
If Query Finds No RecordsFail
If Field Value Is EmptyTreat as not matching
Max Query Rows200
Applies ToWhen a formula is true
Applies When (Formula)BLANKVALUE(AnnualRevenue, 0) > 0
Failure SeverityInfo
Message When Failed{!record.Name fallback="This Account"} has no open Opportunity greater than 10% of Annual Revenue.
Message When Unable To EvaluateUnable to compare Opportunity Amount with Annual Revenue. Confirm access to both fields.
Fix MessageReview Annual Revenue and open Opportunity Amounts, then correct only inaccurate values.
Evaluation Order60
ActiveUnchecked until validation succeeds

Leave Action Label and Action URL blank unless your org has one verified destination that can guide users through both Account and Opportunity values.

  1. Run the configuration-validation Flow.
  2. Correct every error and confirm the business threshold.
  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.

For an Account with Annual Revenue of 1,000,000, the expected value is 100,000.

Annual RevenueVisible open Opportunity AmountsExpected result
Blank or 0AnySkipped
1,000,000NoneInfo
1,000,00075,000 and 100,000Info; comparison is strictly greater than
1,000,00075,000 and 125,000Pass

Repeat the tests with intended sharing. A hidden qualifying Opportunity cannot make the Check pass.

The card reads the visible query result and compares it with the configured expected value.

Result detailMeaning
PASSThe query result satisfies the configured comparison.
FAILThe query 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 normalized row, list, or aggregate value returned by the query.
ExpectedThe configured fixed value or evaluated expected formula.
What you seeCheck this first
An Amount equal to the threshold failsThis example uses Greater than; choose Greater than or equal if policy allows equality
Expected is 0 or blankConfirm Annual Revenue and the applicability formula
A qualifying deal is not foundConfirm Opportunity sharing, Is Closed, and nonblank Amount
Unable to CheckConfirm Read access to both objects and all queried or formula fields