Jer*_*oen 4 php rest web-services sugarcrm
在SugarCRM 6.0.0中,我需要通过REST webservices API在Account和Contact之间建立关系.
我已经尝试过这两种方法(帐户 - >联系人,联系人 - >帐户)无济于事:
$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),
),
);
Run Code Online (Sandbox Code Playgroud)
许多搜索只给我这些方法或SOAP解决方案.谁可以指出我正确的方向?
小智 7
这条线约
'link_field_name' => 'accounts_contacts',
Run Code Online (Sandbox Code Playgroud)
应该
'link_field_name' => 'contacts',
Run Code Online (Sandbox Code Playgroud)
因为链接字段名称是"联系人"(关系名称是"accounts_contacts").
| 归档时间: |
|
| 查看次数: |
4096 次 |
| 最近记录: |