Skip to content
Demo of using Change Data Capture and Async Apex Triggers to build a shadow Opportunity Contact Role table for Roll-Up Summary Fields.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
force-app/main/default
.forceignore
.gitignore
README.md
sfdx-project.json

README.md

Demo: Async Apex Triggers and Change Data Capture for Opportunity Contact Roles

This application is a demo of using Change Data Capture and Async Apex Triggers to build a shadow Opportunity Contact Role table. This enables Roll-Up Summary Fields on the Opportunity object against the shadow table, offering near-real-time rollups of Opportunity Contact Role data.

Turn on Change Data Capture for OpportunityContactRole before trying the app. Make sure to add the Opportunity Roll-Up Summary Field to a page layout, or use queries like

SELECT Id, Role__c, Opportunity__c, Contact__c, Opportunity_Contact_Role_Id__c, Opportunity__r.Count_Of_Opportunity_Contact_Roles__c 
FROM Shadow_Opportunity_Contact_Role__c

to evaluate data.

You can’t perform that action at this time.