Results 1 to 4 of 4

Thread: Can't access to a custom module using soap

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

    Exclamation Can't access to a custom module using soap

    hello, I'm using sugar 5.0.0e and I've created a custom module, and when I try to access it using soap, it doesn't retrieve anything.

    Here is my code:
    PHP Code:
    if(!defined('sugarEntry'))define('sugarEntry'true);
    require(
    'include/nusoap/nusoap.php');

    $auth_array = array(
                    
    'user_auth' => array(
                    
    'user_name' => 'admin',
                    
    'password' => md5('admin'),
                    )
                );

    $client = new nusoapclient("MY_SUGAR_SOAP_URL");

    $login_results $client->call('login'$auth_array);
    echo 
    "<pre>" print_r($login_resultstrue) . "</pre>";

    $session_id $login_results['id'];
    $module_name "custom_matches";

    $result $client->call('get_module_fields',
                            array(
    $session_id,
                                    
    $module_name)
                            );
    echo 
    "<pre>" print_r($resulttrue) . "</pre>"//IT DOESN'T SHOW ANYTHING
    echo "<pre>" print_r($clienttrue) . "</pre>"//it shows no error 
    What could be the problem? Any ideas?
    __
    Federico Piazza
    Developer
    Argentina

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Can't access to a custom module using soap

    Hi Federico

    There are some tricks, like:

    1. Make sure this custom module is tab true;
    2. Make sure you had not hid this module from tab through Tab Editor in Studio;
    3. Make sure you are typing the correct name of the module.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

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

    Default Re: Can't access to a custom module using soap

    hi andopes, I've verified your points
    1. Make sure this custom module is tab true;
    2. Make sure you had not hid this module from tab through Tab Editor in Studio;
    3. Make sure you are typing the correct name of the module.

    And they are fine. I can access through the tabs, the module is visible and the module name is right.

    I've used the get_available_modules and my custom module is listed, so the module is available, but when I do a get_entry_list or get_module_fields nothing happens.
    __
    Federico Piazza
    Developer
    Argentina

  4. #4
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Can't access to a custom module using soap

    hmm, i got some additional info when calling soap. Take a look at example here

    http://www.eontek.rs/sugarcrm/insert...into-sugarcrm/
    CRM Software Engineer
    Eontek - www.eontek.rs

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2008-09-10, 01:20 PM
  2. Relate Activities to Custom Module
    By davidhill in forum Help
    Replies: 1
    Last Post: 2008-08-19, 02:57 PM
  3. SOAP API not returning custom fields
    By sugar7478 in forum Developer Help
    Replies: 2
    Last Post: 2008-07-29, 01:11 PM
  4. Access Control List - Custom Module
    By kgeving in forum Help
    Replies: 1
    Last Post: 2007-04-06, 02:07 PM
  5. teams access control for custom module
    By stasdu in forum Developer Help
    Replies: 5
    Last Post: 2006-12-13, 01:22 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
  •