Skip to content

Check proposal-stage Opportunity amounts

Setup reference: Query Check configuration

Create a Query Check that requires every visible proposal-stage Opportunity to meet a confirmed qualification floor. This example uses 25,000; replace it with your approved amount.

The Account can have several related Opportunities and every returned Amount must pass. Verify with a query supports the stage filter, row-by-row comparison, and no-record behavior.

  • Confirm the stored Opportunity Stage value is exactly Proposal/Price Quote in your org.
  • Replace 25,000 with a reviewed business threshold; do not treat the sample as policy.
  • Confirm intended users can read Opportunity Stage and Amount and see the pipeline in scope.
  • Save new configuration inactive and validate it before activation.

Use Account Related Record Review, or create an Account Check Set that runs on click, shows Found/Expected on demand, and stays inactive until validation succeeds.

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

Salesforce fieldValue
LabelProposal Deals Meet Qualification Floor
Record Health Check NameProposal_Deals_Meet_Qualification_Floor
Check SetAccount Related Record Review
Check TitleProposal-stage deals meet the qualification floor
Evaluation TypeVerify with a query
Source QuerySELECT Amount FROM Opportunity WHERE AccountId = {!record.Id} AND StageName = 'Proposal/Price Quote'
Source Query FieldAmount
How To Read Query ResultsEvery record passes
Comparison OperatorGreater than or equal
Expected Value Comes FromFixed value
Expected Value (Fixed)25000
If Query Finds No RecordsSkip
If Field Value Is EmptyTreat as not matching
Max Query Rows200
Display: Found TextProposal-stage deal values: {!rhcResult.foundValue}
Display: Expected TextQualification floor per proposal-stage deal: {!rhcResult.expectedValue}
Failure SeverityWarning
Message When FailedOn {!record.Name fallback="this Account"}, one or more proposal-stage Opportunities fall below the approved qualification floor.
Fix MessageValidate scope, pricing, and fit. Do not inflate Amount merely to clear this Check.
Action LabelReview proposal-stage opportunities
Action URL/lightning/r/Account/{!record.Id}/related/Opportunities/view
Evaluation Order70
ActiveUnchecked until validation succeeds
  1. Run the configuration-validation Flow.
  2. Correct every error and confirm the stage value and threshold.
  3. Set the Check and Check Set to Active only after validation succeeds.
  4. Test from the Account page with Record Health Check Card User.
Visible proposal-stage AmountsExpected result
NoneSkipped
25,000Pass
25,000 and 40,000Pass
24,999 and 40,000Warning
BlankWarning

Repeat with restricted Opportunity sharing. A hidden deal below the floor cannot be reported.

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
No Opportunities are returnedConfirm the exact Stage value and record sharing
One undersized deal still passesConfirm Every record passes, not Any record passes
A value equal to 25,000 failsConfirm Greater than or equal
Unable to CheckConfirm Opportunity, Stage, and Amount access and validate the query