AnsweredAssumed Answered

After Save Logic Hook: Change Contact's Parent Account

Question asked by Noah Hall on Sep 2, 2015
Latest reply on Sep 2, 2015 by Noah Hall
I created an after save logic hook with the following code:

$bean->load_relationship('accounts');          
$bean->accounts->add($account->id);
$bean->save();

This works if the contact does NOT have an associated Account

If the contact DOES have an associated Account, the account is not changed.


How would I go about changing the parent account on the contact?

Outcomes