AnsweredAssumed Answered

Create Product and Product Relationship by webservice

Question asked by Subhankar Das on Feb 7, 2016

in Sugar 7.6, How can I create relationship between Product And Product Category. I m using following code which is not working:

//Create Relationship Product+Prod Catalog

        $url = SUGAR2_URL . '/Products/' .$product_id . '/link';

        $record_arguments = array(

          // 'link_name' => 'products_producttemplates_1', //This Relationship WORKING

          'link_name' => 'product_templates',  //This Relationship NOT working

          'ids' =>  array($courses[$i]['id']),