Salesforce Revenue Execution
Dual-gate governance for the Salesforce → SAP front-to-back pipeline — state admission (SAP master-data sync and field-shape safety for Commerce Cloud orders and CPQ quotes) and execution authority (margin floor, manual-discount floor, credit limit, payment terms, promo hygiene) before a sales order is committed.
- Key
- salesforce
- Version
- salesforce-revops-v1
- Rules
- 13
- Domain
- SALESFORCE_EXECUTION_AUTHORITY
Rules, in the order the evaluator tries them
Highest priority first. The first rule whose conditions all hold decides; with none, the decision is a REVIEW.
Required SAP-mapping fields present
priority 200state-required-fields · *
When- gate = "state_admission"
- missing_required_fields > 0
ThenAUTO_REJECT → REJECT · urgent
Salesforce payload is missing fields required to build a valid SAP sales order.
Order within the SAP credit limit
priority 200exec-credit-limit · *
When- gate = "execution_authority"
- over_credit_limit = true
ThenESCALATE → ESCALATE · urgent · SLA 30 min
Order total exceeds the customer's SAP-defined credit limit.
Salesforce account is synced to an SAP customer master
priority 195state-customer-master-synced · *
When- gate = "state_admission"
- customer_master_synced = false
ThenAUTO_REJECT → REJECT · urgent
Salesforce Account must map to a validated SAP customer master (KNA1/KUNNR) before order admission.
Net margin floor protected
priority 195exec-margin-floor · *
When- gate = "execution_authority"
- margin_below_floor = true
ThenAUTO_REJECT → REJECT · urgent
Order net margin falls below the policy floor against the SAP cost basis (e.g., a flash-sale promo breaching margin).
Material numbers fit SAP field limits
priority 190state-material-number-valid · *
When- gate = "state_admission"
- material_number_overflow = true
ThenAUTO_REJECT → REJECT · urgent
A material number exceeds the SAP 18-character limit (VBAP overflow).
Sales organization and distribution channel present
priority 185state-sales-org-valid · *
When- gate = "state_admission"
- sales_org_valid = false
ThenAUTO_REJECT → REJECT · urgent
Sales organization (VKORG) and distribution channel (VTWEG) are required for the SAP order header.
Manual discount within compliance floor
priority 185exec-discount-floor · *
When- gate = "execution_authority"
- manual_discount_violation = true
ThenREQUIRE_REVIEW → REVIEW · elevated · SLA 120 min
A manual line discount exceeds the threshold for a non-Strategic account and needs manager override.
Order line amounts and quantities are valid
priority 180state-amounts-valid · *
When- gate = "state_admission"
- amounts_invalid = true
ThenAUTO_REJECT → REJECT · urgent
Order line net price and quantity must be positive numeric values.
Behavioral risk within tolerance (Data Cloud)
priority 180exec-data-cloud-risk · *
When- gate = "execution_authority"
- risk_elevated = true
ThenREQUIRE_REVIEW → REVIEW · elevated · SLA 60 min
Salesforce Data Cloud behavioral risk for this customer is elevated; hold B2B purchasing eligibility for review.
B2B payment terms permitted for region
priority 175exec-payment-terms-allowed · *
When- gate = "execution_authority"
- payment_terms_allowed = false
ThenREQUIRE_REVIEW → REVIEW · elevated · SLA 120 min
Requested B2B payment terms are not permitted for this region without review.
Promotion / coupon stacking review
priority 170exec-promo-stacking · *
When- gate = "execution_authority"
- promo_stacking = true
ThenREQUIRE_REVIEW → REVIEW · elevated · SLA 60 min
Multiple concurrent discount sources are stacked on one order and need review.
Admit a clean Salesforce order intent
priority 1state-admit-default · *
When- gate = "state_admission"
ThenAUTO_APPROVE → APPROVE
Salesforce intent maps cleanly to SAP structures and is eligible for execution review.
Authorize a compliant Salesforce order
priority 1exec-authorize-default · *
When- gate = "execution_authority"
ThenAUTO_APPROVE → APPROVE
Order satisfies revenue policy and may be committed to SAP.
Evaluate under it
Locally, with @decionis/mcp: the payload becomes the request's context, and its action the decision type. On the hosted protocol, once the bundle is stored for your organization, name vertical_pack, policy_version and require_exact_policy_version: true.
decionis_evaluate arguments
{ "policy_pack": "salesforce", "payload": { "action": "<decision type>" } }In a hosted evaluate-decision request
"vertical_pack": "salesforce",
"policy_version": "salesforce-revops-v1",
"require_exact_policy_version": trueWhat its rules read
Every fact below comes from the request's context.
- amounts_invalid
- customer_master_synced
- gate
- manual_discount_violation
- margin_below_floor
- material_number_overflow
- missing_required_fields
- over_credit_limit
- payment_terms_allowed
- promo_stacking
- risk_elevated
- sales_org_valid
Signals it maps
- salesforce_order_admission_ratesalesforce_commerce_cpq
- salesforce_revenue_policy_breach_ratesalesforce_commerce_cpq
