You need to sign in to do that
Don't have an account?
Sakthidasan
would like to know that where's this Owner coming from?
would like to know that where's this Owner coming from? I don't see there's a Owner object and I believe that Owner.Name was getting from User object.when should we use owner field ?
Thanks
Hi Sakthidasan,
Owner is a Lookup (external key) to User. It has a number of meanings:
- In most cases owner has the widest access level to the record he owns.
- If we are talking about Cases (standard salesforce object) - owner is a person responsible for this case (https://help.salesforce.com/apex/HTViewHelpDoc?id=managing_the_sharing_model.htm&language=en)
- By default if sharing settings (https://help.salesforce.com/apex/HTViewHelpDoc?id=managing_the_sharing_model.htm&language=en) set to Private only owner have access to the record
Answering your questions:>>would like to know that where's this Owner coming from?
As a rule user who create a record sets as record owner. But owner can be changed.
>>I don't see there's a Owner object and I believe that Owner.Name was getting from User object.
There is no object 'Owner'. Owner is just a name of look-up field where relation to user is stored
>>when should we use owner field ?
Owner is the base field in salesforce sharing functionality. In some objects it means assignment - owner is an person in charge of record.
1) For most users and most objects, this field can’t be set directly upon insert. It is implicitly set to the current user when inserting an object.
2) When creating or updating a Case or Lead, a client application (that is logged in with sufficient permissions to transfer a record) can set this field to any valid User in the organization or to any valid queue of the appropriate type in the organization.
3) Updating this field via the API changes only the owner of that record. The change of ownership does not cascade to associated records as it does when you transfer record ownership in the Salesforce user interface.
4) Updating this field on an account deletes the existing sharing information and reapplies the organization-wide sharing defaults and sharing rules
5) To update the ownerId field, the user must have the "Transfer Record" permission and Read access to the new owner
NOTE:- In only one scenario your custom objects will not contain owner field, and that it is in master-detail relationship with another object. As ownership is governed by master object, child object does not need any owner field. Please check if this is your case.
Let us know if this will help you.
Owner field resides on every object in Standard fields.
NOTE:- In only one scenario your custom objects will not contain owner field, and that it is in master-detail relationship with another object. As ownership is governed by master object, child object does not need any owner field. Please check if this is your case.
Let us know if this will help you.