Results 1 to 3 of 3

Thread: Soap set_relationship and many-to-many

  1. #1
    Join Date
    Feb 2009
    Posts
    11

    Default Soap set_relationship and many-to-many

    Hello Everyone,
    I'm trying to set a relationship between Contacts and Leads via Soap.
    Here is the code:

    ...
    $result3 = $client->soap->create_lead( $params4 );
    $result2 = $client->soap->create_contact( $params1 );
    $result6 = $client->soap->convert_lead( $result3['id'] );

    $paramsC = array(
    'module1' => 'Contacts',
    'module1_id' => $result2['id'],
    'module2' => 'Leads',
    'module2_id' => $result3['id'],
    );
    $resultC = $client->soap->set_relationship( $paramsC );
    $client->soap->logout();
    ...

    But no response and no creation. I tried with Accounts and Contacts and it works! Everything works fine but this realtionship.

    What I supose, only one-to-one and one-to-many relationships works here, but many-to-many doesn't, is that true?

    Thanks

  2. #2
    stompnoise is offline Member
    Join Date
    Sep 2010
    Posts
    12

    Default Re: Soap set_relationship and many-to-many

    HI, I know this thread has been here for a while but has this issue been solved? I have the same problem using sugarcrm 6. thanks

  3. #3
    Niggy is offline Sugar Community Member
    Join Date
    Oct 2008
    Posts
    246

    Default Re: Soap set_relationship and many-to-many

    There is no relationship table between Contacts and Leads. But in Leads you have the field contact_id.
    Nigel Evenden: Apache/2.2.11 (Debian) PHP/5.2.8 MySQL 5.1.30

    SalesAgility.com - SugarCRM Experts (UK)

    SugarCRM Bootcamp

    Get me a SugarCRM expert now!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with SOAP in set_relationship
    By Rafal76 in forum Developer Help
    Replies: 3
    Last Post: 2009-06-03, 01:18 PM
  2. need SOAP set_relationship help
    By darcy.rippon in forum Developer Help
    Replies: 5
    Last Post: 2009-02-02, 07:24 PM
  3. set_relationship via SOAP in 5.1
    By josh.sweeney in forum Developer Help
    Replies: 1
    Last Post: 2008-09-27, 12:20 AM
  4. soap: set_relationship and cases??
    By napx in forum Developer Help
    Replies: 10
    Last Post: 2006-04-24, 02:24 PM
  5. SOAP set_relationship()
    By George in forum Developer Help
    Replies: 0
    Last Post: 2006-01-11, 10:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •