function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JFraumeniJFraumeni 

Parent/Child Relationships vs. References

Question - how do we know which relationships are parent/child and hence will implement cascading deletes, and which are just considered references, and hence will not allow the referenced object to be deleted.
Thank you very much!


James Fraumeni
james.fraumeni@activeprime.com






(When I ask this, I'm referring to the two bullets in the documentation:
-If a client application deletes an object instance, then its children are
automatically deleted as well (cascading deletes). For example, if a client
application deletes an opportunity, then any associated opportunity line items
are also deleted.
-A client application cannot delete an object instance if it is referenced
by another object instance. For example, a client application cannot delete a
particular Account instance if the AccountId field in an Opportunity instance
references the ID of that account.)
DevAngelDevAngel

Hi JFraumeni,

Not sure if there is no way to explicitly determine this.  I will check to see if there are some standard rules that are not indicated in the ER diagram.