Salesforce Platform Developer I (legacy) — Question 261

A large corporation stores Orders and Line Items in Salesforce for different lines of business. Users are allowed to see Orders across the entire organization, but, for security purposes, should only be able to see the Line Items for Orders in their line of business.

Which type of relationship should be used between Line Items and Orders?

Answer options

Correct answer: A

Explanation

A Lookup relationship is appropriate here as it allows for a more flexible association between Line Items and Orders without enforcing strict ownership, which is essential for the security requirement. The other options, such as Master-Detail, would create a tighter bond that could restrict access and ownership, making them unsuitable for this scenario.