Hi,
SugarCRM 6.1.1
I'm trying to relate an Account to an Opportunity, using the 'accounts_opportunities' link.
$response = $this->client->set_relationship($this->session_id,
'Accounts',
$a_valid_account_id,
'accounts_opportunities',
array( $a_valid_opportunity_id));
I know that the id's I'm passing are good.
I traced this in the debugger and found that the Accounts bean had no field_def entry for 'accounts_opportunities' so it fails without ever looking at the id of the opportunity that I sent.
Am I doing something wrong? I'm using the same code style for several other modules
and it always works.
Is this fixed in 6.2?
Mark


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks