Skip to main content

Quantity Boundaries

Prove that a product quantity must stay within min/max or fixed bounds.

What it proves

A line’s quantity cannot be set outside the allowed range. An out-of-bounds quantity should raise a configuration message from Salesforce.

Example

How to use this example

Map these Meridian product names to equivalents in your org. Pick a valid base quote that already reflects the rule, then select the matching products in Scenario Builder.

API throughput capacity is sold in packs. Quantities below the minimum cannot be fulfilled; quantities above the maximum exceed supported capacity bands.

Product: API Throughput Booster (often sold within a Meridian Data Fabric Bundle)
Bounds: Min = 10, Max = 100

A valid base quote might have quantity 25. Setting quantity to 5 or 150 should violate the boundary and return a message such as:

API Throughput Booster quantity must be between 10 and 100.

What Revsnap does at runtime

  1. Starts from your valid base quote with the target product already on the quote
  2. Sets the product quantity to the invalid value you captured
  3. Asserts the expected configurator message (default severity warning)
  4. Corrects the quantity back to a valid state
  5. Saves the valid configuration
Screenshot coming soontest-runs-configurator-quantity-boundaries-timelineTest run detail showing Scenario Proof Timeline for Quantity Boundaries
The proof timeline shows the out-of-bounds quantity attempt, message assertion, correction, and save phases.

How to capture it

  1. Capture a ConfiguratorScenario Builder snapshot with a valid base quote that already includes the target product.
  2. On Rule Type, choose Quantity Boundaries.
  3. In Scenario Builder:
    • Select the Target product (must already be in quote)
    • Enter the Invalid quantity: it must be outside the real min/max in Salesforce
  4. On Review, set the expected message pattern and confirm severity (warning by default).
  5. Save the snapshot.
Screenshot coming soonsnapshots-configurator-quantity-boundaries-setupScenario Builder for Quantity Boundaries with target product and invalid quantity
Scenario Builder: select the in-quote product and set an out-of-bounds quantity.

Review assertion tips

SettingGuidance
Expected patternMatch Salesforce range text (often similar to group cardinality: isn't in the specified range, or your org’s quantity message)
SeverityPrefer warning unless your org returns error
Out-of-bounds requiredAn in-bounds “invalid” quantity produces no messages: the assertion fails the same way a disabled rule does
Rule must be activeConfirm the quantity constraint is enabled in the target org
Screenshot coming soonsnapshots-configurator-quantity-boundaries-reviewExpectation and review step for a Quantity Boundaries scenario
Review: set the expected quantity message pattern and severity before saving.