Countertop Studio - Validate Deal icon

Countertop Studio - Validate Deal

Validates normalized Deal & Customer data and routes Valid/Invalid.

Countertop Studio - Validate Deal

AI-generated

Summary

Routes each input item to a Valid or Invalid output based on Countertop Studio data integrity rules.

Inputs

  • validateDeal (required) — Enables validation for deal-level fields (name, volume, employee_id, deal_origin).
  • validateCustomer (required) — Enables validation for customer-related fields (customer_ids/customers, customer objects).
  • advanced (required) — Show advanced configuration options.
  • requireCustomer (required) — If enabled, either customer_ids or customers must be present in the item.

Output shape

two parallel output streams: one for valid items and one for invalid items.

Validation adds a countertopStudio.validation object with an ok boolean and an array of error details (fieldPath, rule, message) to the item JSON for both streams.

Examples

Example 1: Validate incoming deal data and separate errors.

Enable validation; ensure deal name and customer data are present.

Links

Discussion