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.
Attached are the screenshots.
Comments
Post a Comment