Results 1 to 3 of 3

Thread: Convert a Lead with SOAP?

  1. #1
    MaxxMarine is offline Junior Member
    Join Date
    Aug 2011
    Posts
    3

    Question Convert a Lead with SOAP?

    Hi,

    Is it possible to convert a Lead to an Opportunity through SOAP API?

    If it isn't possible (If I have to do it mannualy): How do I make sure to delete the existing Lead?

    Thanks

  2. #2
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Convert a Lead with SOAP?

    (1) read the lead you want to convert
    (2) create an opportunity
    (3) link the opportunity to the lead
    (4) set the status of the lead to converted

    All standard SOAP calls. Alternatively write your own soap extension that does all the steps at once with e.g. only the lead guid passed in.

    christian.

    Quote Originally Posted by MaxxMarine View Post
    Hi,

    Is it possible to convert a Lead to an Opportunity through SOAP API?

    If it isn't possible (If I have to do it mannualy): How do I make sure to delete the existing Lead?

    Thanks

  3. #3
    MaxxMarine is offline Junior Member
    Join Date
    Aug 2011
    Posts
    3

    Default Re: Convert a Lead with SOAP?

    What am I doing wrong?

    PHP Code:
    $response $client->set_relationship($session_id,  'Opportunities'$opportunity_id'Leads'$leads_id);
    var_dump($response); 
    Code:
    object(stdClass)#4 (3) { ["number"]=> string(2) "20" ["name"]=> string(21) "Module Does Not Exist" ["description"]=> string(43) "This module is not available on this server" }
    Can anybody help me?

    Extra: I'm getting following id's:
    PHP Code:
    echo "Lead_id is $leads_id, opportunity_id is $opportunity_id"
    Code:
    Lead_id is 16faf17d-84e6-024f-32db-4e467c034dda, opportunity_id is 5565dfc3-a694-ced4-4890-4e4fc2403429
    Update: now I'm getting the following error..

    Code:
    object(stdClass)#8 (3) { ["created"]=> int(0) ["failed"]=> int(1) ["deleted"]=> int(0) }
    Why does this failes????
    Last edited by MaxxMarine; 2011-08-26 at 01:47 PM. Reason: UPDATE

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SOAP Convert lead to contact/account
    By dvancamp in forum Developer Help
    Replies: 6
    Last Post: 2011-08-25, 07:04 PM
  2. Lead konvertieren, lead convert
    By Kupido in forum Deutsche
    Replies: 1
    Last Post: 2011-06-18, 05:18 AM
  3. Replies: 1
    Last Post: 2011-04-14, 08:42 AM
  4. Convert Lead
    By NaCheV in forum Developer Help
    Replies: 3
    Last Post: 2010-09-15, 09:51 AM
  5. Replies: 0
    Last Post: 2009-02-23, 08:02 PM

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
  •