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

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow