Relationships Among Objects

Relationships associate objects with other objects. For example, a relationship can link a custom object to standard object in a related list, such as linking a custom object called Bugs to cases to track product defects associated with customer cases. To view the parent and child relationships among standard objects, see the ERD diagrams in Data Model.

  • You can use parent-child relationships in SOQL queries. For more information, see Relationship Queries in the Salesforce SOQL and SOSL Reference Guide.
  • Only lookup, external lookup, and indirect lookup relationships are available for external objects. No other relationship types are supported. See “External Object Relationships” in the Salesforce Help.
You can define different types of relationships by creating custom relationship fields on an object. The differences between relationship types include how they handle data deletion, record ownership, security, and required fields in page layouts:

To create relationships, use the user interface or Salesforce Metadata API.

© Copyright 2000–2015, inc. All rights reserved.
Various trademarks held by their respective owners.