Just to share with everyone, here is a solution that worked.
My working edition is sugar 6 ent and i have included in file nusoap.php from sugarcrm include/nusoap/nusoap.phpPHP Code:$rl = array(
// session id from login
'session' => $session_id,
'set_relationship_value' => array(
// put here the module that shows subpanel in 1:n relationships, in this case Calls is subpanel in opportunity
'module1' => 'Opportunities',
'module1_id' => $resultOpId['id'],
// put here the other module you are relating to
'module2' => 'Calls',
'module2_id' => $resultCaId['id'],
)
);
// call to set relationship
$resultRel = $client->call('set_relationship',$rl);
echo '<br />';
// print test results
print_r($resultRel);


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks