-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Hello !
When I try to use an AfterDelete trigger, I wanted to use existingRecords but it's null while Trigger.old/Trigger.oldMap is available in delete triggers -> Trigger Context Variables
So I think we can add it in the handleAfterDelete method -> src\frameworks\at4dx\sfdx-source\core\main\classes\framework-application-factory\ApplicationSObjectDomain.cls
public virtual override void handleAfterDelete(Map<Id,SObject> existingRecords)
{
super.handleAfterDelete(existingRecords);
this.getDomainProcessCoordinator().processDomainLogicInjections( DomainProcessConstants.PROCESS_CONTEXT.TriggerExecution, System.TriggerOperation.After_Delete, existingRecords );
}
EDIT: It's the same for handleBeforeDelete
Thank you !
Metadata
Metadata
Assignees
Labels
No labels