Marc Salo

Where/How can I find the current user's Private Team ID?

Discussion created by Marc Salo on Nov 28, 2016
Latest reply on Nov 29, 2016 by Marc Salo

I'm running an after_save logic hook where I set the Account to the Current User's Private Team or to the Global Team depending on other values. 

I know how to add teams using: 

//Retrieve the bean$bean = BeanFactory::getBean($module, $record_id);

//Load the team relationship
$bean->load_relationship('teams');
//Add the teams
$bean->teams->add(
    array(
        $team_id_1,
          $team_id_2
    )
);

However, I don't know how to find the User's Private Team. 

 

Thanks!

Outcomes