Salesforce Fact #219 | Child data unavailable in after delete SOQL

If we have a trigger on child object then in case of before delete trigger we get the data from child record in inner SOQL query, but in case of after delete it is not available anymore even if we consider trigger.old.

Note: Please do not follow this coding as it is only for demonstration purpose and trigger best practices can be implemented.

EDIT: The data would be available in acc.Contacts if there are related contacts other than the current contact.

Attached are the screenshots.



 

 

Comments

Popular posts from this blog