Results 1 to 2 of 2

Thread: Soap Contact List

  1. #1
    frenchsquared is offline Junior Member
    Join Date
    Jun 2009
    Posts
    2

    Default Soap Contact List

    Is there a way to display all contacts and there respective data?

    I can add a contact with:

    PHP Code:
    // Now Prepare a Contact
    $set_entry_params = array('session' => $result['id'],
    'module_name' => 'Contacts',
    'name_value_list'=>array(
    array(
    'name'=>'first_name','value'=>'Ola'),
    array(
    'name'=>'last_name','value'=>'Norman'),
    array(
    'name'=>'email1','value'=>'konge@norge.com'),
    array(
    'name'=>'lead_source','value'=>'http://www.kongen.com'),
    array(
    'name'=>'phone_work''value'=>'22445566'),
    array(
    'name'=>'account_name','value'=>'Okei')
    )
    );

    // Now Add the Contact
    $result2 $client->call('set_entry',$set_entry_params); 
    But I cant figure out how to add more stuff like there address?
    With Magento I was able to list out all the contact information and from there I could look at the xml to determine what I could add.

    Is there a list of data fields that I can add. Such as 'name'=>'email1','value'=>
    or does someone have a bit of code I can use do dump out the xml for a contact list?

    Thanks for reading

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Soap Contact List

    If you do a print_r($xml) you'll see all of the fields in Contacts. If you want to dump it to a string use print_r($xml,true).

    Or alternatively open cache/modules/Contacts/Contactsvardefs.php to see the list of fields for that bean.

    Good luck!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SOAP Associating a User/Contact/Lead with a prospect list
    By shipleyr in forum Developer Help
    Replies: 21
    Last Post: 2010-09-09, 11:42 AM
  2. SOAP - setting email for contact via soap
    By darcy.rippon in forum Developer Help
    Replies: 3
    Last Post: 2008-09-22, 08:13 PM
  3. Replies: 0
    Last Post: 2008-08-06, 09:14 AM
  4. Replies: 1
    Last Post: 2008-01-04, 08:33 PM
  5. Replies: 0
    Last Post: 2004-11-10, 08:42 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
  •