Recued
← Back to recipes

Deal Amount Validator

by recued-core v1 context

Validates deal amount field presence, positivity, and stage-appropriate range compliance.

How it works

Data fetch
deal deal-reader-hubspot
Fetch reader from hubspot
Process (8 steps)
amount_exists compare
Check if deal amount exists
amount_positive compare
Check if deal amount is greater than 0
min_for_stage switch
Map deal stage to one of: proposal, closed_won, closed_lost, negotiation, prospecting, qualification
max_for_stage switch
Map deal stage to one of: proposal, closed_won, closed_lost, negotiation, prospecting, qualification
amount_ge_min compare
Check if deal amount is at least min for stage
amount_le_max compare
Check if deal amount is at most max for stage
in_range all
Check if all conditions are true
validation_checklist to_checklist
Format results as an actionable checklist
Output
checklist validation_checklist

Tags

hubspot

Details

9 steps recipe_id: validate-deal-amount-hubspot

Install

Install in Recued View publisher Open Kitchen

If the webclient is not paired yet, copy validate-deal-amount-hubspot and paste it after pairing.