Sugar CRM integration with Java - How to add relationship

Posted by Arun P Johny on Stack Overflow See other posts from Stack Overflow or by Arun P Johny
Published on 2010-03-10T10:32:27Z Indexed on 2010/06/10 14:33 UTC
Read the original article Hit count: 317

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about sugarcrm