AnsweredAssumed Answered

REST set_relationship doesn't work

Question asked by Jerry Jerry on Sep 27, 2014
Latest reply on Dec 8, 2014 by Marilyn Waldman
I am using set_relationship between a custom module and a system one. When I use set_relationship between two records, it shows information below:
stdClass Object
(      [created] => 0      [failed] => 1      [deleted] => 0  )   

Here is my code: (Contacts [One] to order_websiteOrders[Many] Relationship)

$url = "";

//Set relationship between order and contact
$set_relationship = array(
         //session id
         "session" => $session_id,

         //The name of the module from which to retrieve records.
         "module_name" => "Contacts",
   "module_id" => $set_contact_entry_result->id,
   'link_field_name' => 'order_websiteOrders',
   'related_ids' => array( $set_order_entry_result->id,),

$set_relationship_result = call("set_relationship", $set_order_entry_parameters, $url);

I have been working on this for 3 days and tries everything I can find. It just not work. Could anyone please help me with it?