Re: Access to account_id in before_save event when creating a contact

Originally Posted by
Phil Norman
Does anyone know how to access the account id for a contact in the before save hook?
When I save details of a contact for whom I have assigned an account the value is stored in $bean->account_id when modifying an existing contact, but not when creating a new one.
I am using version 5.4.4 of SugarCRM.
Does anyone know if this works for newer versions of SugarCRM?
You should be able to access the bean's id in the $bean->id attribute.
John Mertic
Sugar Community Manager
Bookmarks