- Logic is in ETM_Batch_UpdateTerritoryValues.cls
- Sorry about the map at the top, that should have moved to metadata as I did in challenge #6
NOTE: this is untested outside of my production environment
- Main logic is in ETM_PriceAgreementsService.cls
- Called by triggers on PriceAgreement_Account__c, Territory2, and UserTerritory2Association
- The prior batch class ETM_Batch_UpdateTerritoryValues.cls calls as well
- The service may batch updates with ETM_Batch_AgreementShares.cls
- Both solutions are implemented in ETM_Account.trigger
- Start with the batch class ETM_Batch_CopyShadowFields.cls
- Support logic in ETM_AccountsService.cls
- Field mapping in custom metadata row Account_Visible_To_Shadow
- lightning component can be accessed at /c/ETM_App.app
See queries here