Overview

#Triggers are configured to manage territory-based sharing on Account. When the Territory Manager field is set or changes, DSP creates an AccountShare for the current manager and removes the previous AccountShare, keeping access aligned with the latest Territory Manager.

General Use Case

Use #Trigger to automatically create, update, or delete child records in response to key parent field changes, keeping related data consistent.

Video Demo

Prerequisites

Account.TerritoryManager__cLookup(User)

Downloadable Executables

DownloadAccount.Triggers

Walkthrough

1

Pipeline - Account.Triggers

pipeline-account-triggers
2

New Executable - AccountShare.Insert

new-executable-accountshare-insert
3

Trigger Settings

trigger-settings
4

Scoping

scoping
5

Mapping

mapping
6

New Executable - AccountShare.Delete

new-executable-accountshare-delete
7

Trigger Settings

trigger-settings-2
8

Scoping

scoping-2
9

Mapping

mapping-2