In SugarCRM 6.0.0, I need to create a relationship between an account and a contact through the REST web services API.
I tried these methods in both directions (Account → Contact, Contact → Account) to no avail:
$method = 'set_relationship'; $params = array( 'module_name' => 'Accounts', 'module_id' => $accountId, 'link_field_name' => 'accounts_contacts', 'related_ids' => array($userId) ); $method = 'set_entry'; $params = array( 'module_name' => 'Contacts', 'name_value_list' => array( array('name' => 'id', 'value' => $userId), array('name' => 'accounts_contacts', 'value' => $accountId), ), );
Numerous search queries give me only these SOAP methods or solutions. Anyone who can point me in the right direction?
source share