Sugar Version (6.0.0)
Sugar Edition (SugarCE)
Category (soap, relationship)
PHP Version (5.2.9)
Database (MySQL 5.1.34)
Web Server (Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2)


I'm gonna show you the source.

PHP Code:
    for($i=0;$i<$target_count;$i++){
        
        
$result $soapclient -> call(
            
'set_entry',
            array(
                
'session'=>$session,
                
'module_name'=>'SMS_Activity',
                
'name_value_list'=>array(
                    array(
'name'=>'name''value'=>$user_info[$i]['last_name'].$user_info[$i]['first_name'])
                )
            )
        );
        
$sms_id $result['id'];
        
$user_id $user_info[$i]['id'];
        
$result $soapclient -> call(
            
'set_relationship',
            array(
                
'session'=>$session,
                
'module_name'=>'SMS_Activity',
                
'module_id'=>$sms_id,
                
'link_field_name'=>$user_info[$i]['link_name'],
                
'related_ids'=>array($user_id)
            )
        ); 
After I made ​​a module (SMS Activity) ,the record was added.
But they didn't add records to the relationship table.

Setting the relationship between custom modules,
Primary Module : SMS_Activity
Type : Many to Many
Related Module : Contacts

English is immature, but please help. Thank you.