Sugar CRM与Java的集成-如何添加关系
我正在尝试将Sugar CRM与我的一个项目集成。我使用ApacheAxis作为SOAP客户端 我已经使用ApacheAxis创建了SugarCRM客户机存根类 我能够登录并添加潜在客户、机会、帐户和联系人 但我无法在我的帐户和Opportunity之间添加关系 我在SugarsoapPortType中发现了以下方法Sugar CRM与Java的集成-如何添加关系,java,sugarcrm,Java,Sugarcrm,我正在尝试将Sugar CRM与我的一个项目集成。我使用ApacheAxis作为SOAP客户端 我已经使用ApacheAxis创建了SugarCRM客户机存根类 我能够登录并添加潜在客户、机会、帐户和联系人 但我无法在我的帐户和Opportunity之间添加关系 我在SugarsoapPortType中发现了以下方法 port.set_relationship(session, module_name, module_id, link_field_name, related_ids, name_
port.set_relationship(session, module_name, module_id, link_field_name, related_ids, name_value_list, delete)
但我无法理解此方法所需的不同参数
大多数在线文档都提供了一种简单的方法,如下所示
$result = $client->call('set_relationship',array("session"=>$session _id,array("module1"=>"Emails","module1_id"=>"<module1_id>","module2"=>"Accounts","module2_id"=> "<module2_id>")));
$result=$client->call('set_relationship',数组(“session”=>$session\u id,数组(“module1”=>“email”,“module1\u id”=>,“module2”=>“Accounts”,“module2\u id”=>));
如何使用Java实现这一点
谢谢经过大量搜索后获得
范例
New_set_relationship_list_result relationship = port.set_relationship(sessionID, "Accounts", "<account_id>", "opportunities", new String[] {"<opportunity_id>"}, null, 0);
New_set_relationship_list_result relationship=port.set_relationship(sessionID,“Accounts”,“opportunities”,“opportunities”,新字符串[]{”“},null,0);
谢谢您的回答!sugarcrm对此没有很好的记录;)