Study for the Salesforce Platform Developer Exam. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Practice this question and more.


To create a one-to-many relationship between Accounts and the Orders object in Salesforce, which relationship type do you use?

  1. Master Detail Relationship

  2. Indirect Lookup Relationship

  3. Lookup Relationship

  4. External Lookup Relationship

The correct answer is: Indirect Lookup Relationship

In Salesforce, establishing a one-to-many relationship between objects is commonly done using a specific relationship type. For the scenario where you want to link Accounts to the Orders object, a Lookup Relationship is the appropriate choice. A Lookup Relationship allows for a one-to-many association where each Order (the child object) can be linked to a single Account (the parent object). This means that you can have multiple Orders associated with a single Account, thus creating the desired one-to-many relationship. In addition, a Lookup Relationship is flexible, allowing for the child record to exist independently of the parent record. While other relationship types serve different purposes, they do not align with the requirement as effectively. For instance, a Master Detail Relationship would imply stronger ownership and dependency of the child on the parent, which may not always be required. Indirect and External Lookup Relationships are used for connecting Salesforce objects to external data sources and are not suitable for linking standard Salesforce objects like Accounts and Orders in a direct line like this. Therefore, the most fitting relationship type for this scenario, establishing a straightforward one-to-many connection between Accounts and Orders, is the Lookup Relationship.