Results 1 to 2 of 2

Thread: Retrieving 'sugar_id' variable

  1. #1
    fedepia is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Rosario, Argentina
    Posts
    104

    Default Retrieving 'sugar_id' variable

    Hello, I have my jdeveloper's project with sugar's web services mapped from soap.php?wsdl
    I could log to sugar using 'login' ws, insert a lead by 'set_entry' but when i have to use 'get_entry' ws to retrieve data from sugar I can't go on, this is because get_entry's parameters are 'session_id', 'module_name', ID (this is sugar_id) and 'list of values' (like first_name, last_name, etc).

    im need to retrieve the sugar_id variable from someplace but I don't know where. So, how could i retrieve the sugar_Id?

    Thanks

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: Retrieving 'sugar_id' variable

    When you call Set Entry, if you look at the results returned, the NEW ID of your record will be in there.

    Here is what I have for the get entry.
    I think your "ID" field is wrong.

    $result = $client->call('get_entry_list',array(
    'session'=>$session_id,
    'module_name'=>'Users',
    'query'=>"users.id='".ADMINID . "'",
    'order_by'=>'',
    'offset'=>0,
    'select_fields'=>array(
    'user_hash'
    ),
    'deleted'=>0
    )
    );

    Hope this helps

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Variable not getting passed to function
    By rickcrites in forum Developer Help
    Replies: 0
    Last Post: 2006-10-11, 01:01 AM
  2. PHP Warnings after install add-in Module
    By kgeving in forum Help
    Replies: 1
    Last Post: 2006-08-08, 05:54 PM
  3. Replies: 0
    Last Post: 2006-05-02, 11:21 AM
  4. Replies: 7
    Last Post: 2005-05-10, 08:25 AM
  5. Replies: 2
    Last Post: 2004-11-10, 02:44 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
  •