Results 1 to 5 of 5

Thread: SOAP call get_entry for EmailAddresses

  1. #1
    Editha is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    58

    Default SOAP call get_entry for EmailAddresses

    In version 5.0.0 and 5.1.0RC the SOAP call get_entry for module EmailAddresses always returns an empty result.

    This is because module /metadata/email_addressesMetaData.php defines $dictionary['email_addresses']['fields'] in a wrong way. The keys in the array must be set to the field names.

    After changing the module you must clear the cache by admin - repair.

    Wrong definition:

    PHP Code:
        'fields'    => array(
            array(
                
    'name'            => 'id',
                
    'type'            => 'id',
                
    'required'        => true,
            ),
            array(
                
    'name'            => 'email_address',
                
    'type'            => 'varchar',
                
    'length'        => 100,
                
    'required'        => true,
            ),
            array(
                
    'name'            => 'email_address_caps',
                
    'type'            => 'varchar',
                
    'length'        => 100,
                
    'required'        => true,
            ),
            array(
                
    'name'            => 'invalid_email',
                
    'type'            => 'bool',
                
    'default'        => 0,
            ),
            array(
                
    'name'            => 'opt_out',
                
    'type'            => 'bool',
                
    'default'        => 0,
            ),
            array(
                
    'name'            => 'date_created',
                
    'type'            => 'datetime'
            
    ),
            array(
                
    'name'            => 'date_modified',
                
    'type'            => 'datetime'
            
    ),
            array(
                
    'name'            => 'deleted',
                
    'type'            => 'bool',
                
    'default'        => 0,
            ),
        ), 
    Corrected definition:

    PHP Code:
        'fields'    => array(
            
    'id' => array(
                
    'name'            => 'id',
                
    'type'            => 'id',
                
    'required'        => true,
            ),
            
    'email_address' => array(
                
    'name'            => 'email_address',
                
    'type'            => 'varchar',
                
    'length'        => 100,
                
    'required'        => true,
            ),
            
    'email_address_caps' => array(
                
    'name'            => 'email_address_caps',
                
    'type'            => 'varchar',
                
    'length'        => 100,
                
    'required'        => true,
            ),
            
    'invalid_email' => array(
                
    'name'            => 'invalid_email',
                
    'type'            => 'bool',
                
    'default'        => 0,
            ),
            
    'opt_out' => array(
                
    'name'            => 'opt_out',
                
    'type'            => 'bool',
                
    'default'        => 0,
            ),
            
    'date_created' => array(
                
    'name'            => 'date_created',
                
    'type'            => 'datetime'
            
    ),
            
    'date_modified' => array(
                
    'name'            => 'date_modified',
                
    'type'            => 'datetime'
            
    ),
            
    'deleted' => array(
                
    'name'            => 'deleted',
                
    'type'            => 'bool',
                
    'default'        => 0,
            ),
        ), 
    I opened Bug No 24144 for this issue.
    Last edited by Editha; 2008-08-10 at 03:44 PM.

  2. #2
    pgradwo is offline Junior Member
    Join Date
    Jun 2009
    Posts
    3

    Default Re: SOAP call get_entry for EmailAddresses

    The SOAP-Call get_entry() for the Emails-moldule also returns no values for the fields :
    description
    description_html
    from_addr
    from_name
    to_addrs
    cc_addrs
    bcc_addrs

    Is there a "hotfix" available for the Emails-module such as for the EmailAddresses-module?

  3. #3
    djcasual is offline Junior Member
    Join Date
    May 2009
    Posts
    2

    Default Re: SOAP call get_entry for EmailAddresses

    I spent over 3 hours killing myself as to why the soap interface returns no data for the EmailAddresses module. Finally found this and to my surprise the bug STILL exists in Version 5.2.0e (Build 5626)!?!

    This is something I'll have to patch with every update. I need email lookups for my production setup. Where exactly does the Mantis/Bug ticket system reside?

  4. #4
    sgandhi is offline Sugar Team Member
    Join Date
    Aug 2007
    Posts
    217

    Default Re: SOAP call get_entry for EmailAddresses

    Its fixed for 5.5

    -Samir

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: SOAP call get_entry for EmailAddresses

    Quote Originally Posted by djcasual View Post
    This is something I'll have to patch with every update. I need email lookups for my production setup. Where exactly does the Mantis/Bug ticket system reside?
    You find it in http://bugs.sugarcrm.com :
    http://www.sugarcrm.com/crm/?option=...oduct_category=
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


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 get_entry call
    By JMGRipped in forum Developer Help
    Replies: 7
    Last Post: 2012-01-19, 10:19 PM
  2. SugarCRM, SOAP and Fonality ... the fun continues...
    By sprunka in forum Developer Help
    Replies: 10
    Last Post: 2009-04-17, 10:06 PM
  3. Getting number of entries in a module using SOAP Call
    By pvikasroonwal in forum Developer Help
    Replies: 0
    Last Post: 2008-04-02, 08:28 AM
  4. Replies: 4
    Last Post: 2008-03-12, 12:40 PM
  5. BUG: Soap Call get_entry_list()
    By StephaneZ in forum Developer Help
    Replies: 2
    Last Post: 2005-10-30, 03:37 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
  •