Results 1 to 5 of 5

Thread: Create own ID using SOAP API

  1. #1
    sugar7478 is offline Senior Member
    Join Date
    Jun 2008
    Posts
    40

    Default Create own ID using SOAP API

    I was trying to use SOAP API and create Accounts in SugarCRM with own Account ID.

    I tried to call SOAP API with a sequence number passed as Account ID and I was expecting to have an Account with the ID sent as parameter. Unfortunately Account is not created in Sugar evev though we received "no error" as response from SOAP API after execution. Is there a format in which we should ID as paramter to SOAP API?

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Create own ID using SOAP API

    If you pass an ID as a parameter, it typically assumes you are trying to update the record that has the matching ID value, as opposed to creating a new record with an ID value matching what you provided.

    Why are you wanting to specify your own ID when you are already going through the API? Seems like a needless task.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    sugar7478 is offline Senior Member
    Join Date
    Jun 2008
    Posts
    40

    Default Re: Create own ID using SOAP API

    We are integrating SugarCRM with our a legacy system. Our legacy system has all the critical modules to support our business needs. We have an ID in the legacy system to identify a member inthe legacy system and we would like to use the same as Account Id in SugarCRM

    We tried calling the SOAP API using our ID. It created a record in Account_Cst file, but not in the main Account file.

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Create own ID using SOAP API

    Why not simply put the id from the other system into a custom field in the Accounts module?
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    julian's Avatar
    julian is offline Sugar Team Member
    Join Date
    Sep 2004
    Posts
    1,639

    Default Re: Create own ID using SOAP API

    Hello all,

    If you pass an 'id' that doesn't exist, Sugar should still create the record. If you pass an id that exists, Sugar will instead update the record. If you do not pass an id, Sugar will create a new record.

    What do the ids from the legacy system look like? If a record is created in the accounts_cstm table, what does the value of id_c look like? Is it the id from the legacy system? (It should be)

    Are you passing all required fields for the Accounts module? That could be why the save() is failing.
    Julian Ostrow
    Systems and Applications Engineer
    SugarCRM Inc.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SOAP API Login Failiure
    By myunus in forum Help
    Replies: 2
    Last Post: 2010-12-07, 09:20 AM
  2. How To: Faster portal customer case mgmt using the SOAP API
    By eggsurplus in forum Developer Help
    Replies: 1
    Last Post: 2009-11-20, 06:48 AM
  3. SOAP API, Java -- Creating and submitting a lead?
    By sugarmichael in forum Developer Help
    Replies: 5
    Last Post: 2008-06-27, 04:43 PM
  4. delete Note Attachment via soap API in java
    By othmanelmoulat in forum Developer Help
    Replies: 0
    Last Post: 2008-02-13, 09:23 PM
  5. Replies: 1
    Last Post: 2007-04-19, 01:27 AM

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
  •