Re: Update Contact Owner with Account Owner

Originally Posted by
fbnewtz
Is there an easy way to update all of the contact record owners with the same owner as the account associated with those contacts?
I can't imagine that I am the first person who wants to make this happen. We use permissions to only allow our sales agents to see their own accounts. We had a custom portal developed for our agents that would allow them to get their appointments each day, but now I want to move this functionality into Sugar. Our appointment setters already complain about all of the steps required when they set appointments already. Adding an additional step would be enough to start a mutiny around here.
Any help or even a pointer into something that is similar functionality wise that could allow me to write some custom functionality would be great.
Thanks,
Fred
to update the existing contacts to have the same owner as the account could be done by sql
then create a before save logic hook on contacts to get the assigned_user_id from the account
you could also do a before_save on accounts to update contacts
Mike Solomon
Development Manager
Ivy Ltd
www.ivy.ltd.uk]www.ivy.ltd.uk
php version 5.2.6
MySql 5.1.59
Bookmarks