AnsweredAssumed Answered

ProspectList bean: load_relationship problem

Question asked by Semper Frozen on May 8, 2015
Latest reply on May 12, 2015 by Semper Frozen
Hi, using sugarcrm 6.5 

In a custom process, I have to create a target list, with an associated account:
1)  $newProspectList = new ProspectList();     2)  $newProspectList->assigned_user_id = $current_user->id;
3)  $newProspectList->list_type='default';
4)  $newProspectList->load_relationship('prospect_list_accounts');
5)  $newProspectList->prospect_list_accounts->add($relatedAccount->id);
     But $newProspectList->prospect_list_accounts results in bool false.
It looks like that prospect_list_accounts is not the right way to do this.

Any suggestion?