Sugar CRM integration with Java - How to add relationship
- by Arun P Johny
Hi,
I'm trying to integrate Sugar CRM with one of my projects. I'm using Apache Axis as my SOAP client.
I've created the Sugar CRM client Stub classes using Apache Axis.
I'm able to login and add Leads, Opportunities, Accounts and Contacts.
But I'm unable to add a relation ship between my Account and Opportunity.
I've found following method in the SugarsoapPortType
port.set_relationship(session, module_name, module_id, link_field_name, related_ids, name_value_list, delete)
but I cannot understand the different parameters required by this method.
Most of the online documents suggests a simple way as given below
$result = $client->call('set_relationship',array("session"=>$session _id,array("module1"=>"Emails","module1_id"=>"<module1_id>","module2"=>"Accounts","module2_id"=> "<module2_id>")));
how can I achieve this using Java
Thanks