Order has lookup to Account,Contact,Contract,Quote and Order and when you set OWD of Order object as Controlled by Parent and there is no Master-Detail relationship on Order Object then who is the parent that is controlling the Order Object?
-
2By definition, Contact is a child of Account. Contract and Quote would also be children of Account (usually through Opportunity), so I'd expect Account to be the parent. If you look at the Schema or a Query editor tool that shows relationships, that's what I'd expect you to see.– crmprogdevApr 2, 2015 at 23:42
1 Answer
From the Order documentation (my emphasis):
Represents an order associated with a contract or an account.
So I'd say the parent is either the Contract or the Account, depending on how the Order is setup.
The docs also say that AccountID
is a required field and that the ContractId
isn't.
The more standard docs have:
Contract Name
Title for the parent contract that distinguishes it from other contracts. (Read-only)
And from Orders Overview:
Depending on your company’s needs, your administrator might require orders to be added to a contract or allow them to be added directly to an account.
So, based on the documentation, I'd say the Account is the parent that would usually drive OWD. It is required on all Order records.
The only exception might be orgs where the Contract is configured as required. This would need to be tested experimentally, unless someone has direct experience with it.