Insert the SugarCRM data in relational table

To set the relationship and set the data in table:

To set the data in the relationship table, use the below code.

//create the object of the table
$acc = new Account();

//key return by the saved data
$relate_value = array('accounts_contacts_idb' => $contact_id);

//key value of related field
$data_value = array('accounts_contacts_idb_ida' => $_REQUEST['account_id']);

//function call by the same object



Popular posts from this blog

SugarCRM Database Query