Is there a way to display all contacts and there respective data?
I can add a contact with:
But I cant figure out how to add more stuff like there address?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);
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


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks