function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ivetkinivetkin 

Updating Account Owner trigers update Contact Owner

Hi, there is a strange behaviour : 

If we create Account with a Contact and they have the  same  owner   and change the owner in the Account then new Account  Owner is also set to the Contact.

If Account and Contact have different Owner then changing Account Owner doesn't set this Owner to the Contact.

 

Could smb. explain such a behaviour or provide some docs explaining this? 

 

Thanks in Advance.

Rahul_sgRahul_sg
This is standard behavior!

plz chk this :http://boards.developerforce.com/t5/Apex-Code-Development/Relationship-between-Accounts-Contacts-Opportunities/td-p/307939

as per the sfdc doc: Contact Ownerid id the ID of the owner of the account associated with the contact.
but in SFDC you can add a contact without associating it to any Customer, so its kind of hybrid relationship.

ivetkinivetkin
Hi Rahul_sg,
Thanks for your answer!

But the question is still open:

1) Yes, I know that there is a Master Detail relation between Account - Contact.
But according to the documentation http://www.salesforce.com/us/developer/docs/api/Content/relationships_among_objects.htm :

"The Owner field on the detail object is not available and is automatically set to the owner of its associated master record." -

But Contact Owner is Available and we can set the new value.


2) OK, if there is a master - detail relation , why is new value of Account Owner applied to the Contact only in case if Contact had the same Owner? Can It be configured somehow?

3) As I understand from this http://boards.developerforce.com/t5/General-Development/Contact-Owner-to-be-Account-Owner-By-Default/m-p/65308/highlight/true#M16916
post - they are trying to have the account owner to be contact owner and they are trying some workarounds to achieve it - what is the use of it if it's a "standart functionallity" ?


Thanks in Advance for your replies.