In 5.0 the set_relationship was for many to many relationships. Now OOTB we supply relationships like one-to-many. I have been working on trying to set a one-to-many relationship via SOAP in 5.1 and have been unsuccessful.
Scenario:
I have a custom module called test_ContactCompany. Records in this module can be related to Contacts.
Here is what I have tried so far.
Setting the field during the set_entry call:
Code:$set_entry_params = array( 'session'=>$sessionid, 'module_name'=>'test_ContactCompany', 'name_value_list'=>array(array('name'=>'name','value'=>"test soap call 7"),array('name'=>'callernumber','value'=>$callerNumber),array('name'=>'parent_id','value'=>$accountId), array('name'=>'parent_type','value'=>'Accounts')) );
Settings the relationship with set_relationship:
In this snippet I have also tried switching the modules around and tried contacts, contact, and ContactsCode:'set_relationship_values' => array( 'module1'=> 'test_ContactCompany', 'module1_id'=> $callId, 'module2' => 'Contact', 'module2_id'=> $contactId, )
Any suggestions?


LinkBack URL
About LinkBacks





Reply With Quote
Bookmarks