AnsweredAssumed Answered

Sugarbean setting email in Accounts (7.5)

Question asked by dominik.kohout@log.at on Jul 14, 2015
Latest reply on Jul 14, 2015 by paperless
I am able to edit an Account via SugarBean like this:

$bean = BeanFactory::newBean('Accounts');
        $bean = BeanFactory::getBean('Accounts', $id);
$bean->name = $name;
$bean->load_relationship('teams');         
$bean->teams->replace(array(1, $teamid));
$bean->save();

But how can I set the email address?

Outcomes