SugarCRM Rest API:从合同中获取文件
SugarCRM Rest API: Get Documents from Contracts
Sugar CRM 休息 API:
http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_7.5/70_API/Web_Services/20_Examples/v10/module_record_link_link_GET/
我正在尝试使用这样的 api 调用来获取属于特定合同的文档列表
call(SugarCRM Url + '/Contracts/' + contract.id +'/link/documents','GET')
但我明白了
{
"error": "not_found",
"error_message": "Could not find a relationship named: documents" }
但是当我登录到 Sugar CRM 时,我能够找到特定合同中的文件列表。
我解决了这个问题
rest/v10/Contracts/029e901b-6118-460f-b8d9-37682c84d970/link/contracts_documents
这是 sugarcrm 中的错误,我们应该将其从 link/documents 更改为 link/contracts_documents
合同模块和文档模块之间的link名称是contracts_documents
它将适用于此 URL:(rest/v10/Contracts/<ContractId>/link/contracts_documents)
Sugar CRM 休息 API: http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_7.5/70_API/Web_Services/20_Examples/v10/module_record_link_link_GET/
我正在尝试使用这样的 api 调用来获取属于特定合同的文档列表
call(SugarCRM Url + '/Contracts/' + contract.id +'/link/documents','GET')
但我明白了
{ "error": "not_found", "error_message": "Could not find a relationship named: documents" }
但是当我登录到 Sugar CRM 时,我能够找到特定合同中的文件列表。
我解决了这个问题 rest/v10/Contracts/029e901b-6118-460f-b8d9-37682c84d970/link/contracts_documents
这是 sugarcrm 中的错误,我们应该将其从 link/documents 更改为 link/contracts_documents
合同模块和文档模块之间的link名称是contracts_documents
它将适用于此 URL:(rest/v10/Contracts/<ContractId>/link/contracts_documents)