Pages

Wednesday, April 17, 2024

Salesforce: Finding Child Objects

As a Salesforce admin, seeing the parent objects of an object is easy; just go to the Object Manager, look in Fields & Relationships, and look for fields with type = Lookup or Master-Detail.

However, the other way around, looking for child objects from an object is not straightforward; developers can use getChildSObject()

Here is a way to find child objects, which is using Workbench.

Navigate to Standard & Custom Objects, choose the object, and see items under "Child Relationships"  


The one with cascadeDelete = True is the Master-Detail relationship, while cascadeDelete = False is the Lookup relationship.

Another way to look for custom child objects is by creation action and selecting "Create a Record"




If you know any other ways, feel free to comment.



No comments:

Post a Comment

Page-level ad