Overview

A Self-Adaptive #Trigger is configured on Opportunity to enforce Owner and Stage assignment policies on save. It validates: 1. Renewal Opportunities are owned by the Account Owner and high-value Opportunities (≥ $500,000) are owned by a Sales Manager (Owner Profile). 2. Opportunities cannot progress to later stages without an Amount.

General Use Case

Use a Self-Adaptive #Trigger to centralize an object’s validation rules, and use ERROR() to conditionally block saves with specific messages.

Video Demo

Downloadable Executables

DownloadOpportunity.SelfAdaptive.Validations

Walkthrough

1

Pipeline - Opportunity.Triggers

pipeline-opportunity-triggers
2

New Executable - Opportunity.SelfAdaptive.Validations

new-executable-opportunity-selfadaptive-validations
3

Trigger Settings

trigger-settings
4

Mapping

mapping