jmertic/ibmdeveloperworks_sugarcrmrest — Issue #1: Incorrect set_entries params for Listing5.php
Author: khuynh
Created: 2011-10-21 19:47:42+00:00
State: open

The parameters for set_entries in Listing5.php is slightly incorrect. You forgot to put the Contacts inside the actual name_value_lists array.

This should be the correct code:

$parameters = array(
'session' => $sessionId,
'module' => 'Contacts',
'name_value_lists' => array (
array(
array('name' => 'first_name', 'value' => 'John'),
array('name' => 'last_name', 'value' => 'Mertic'),
),
array(
array('name' => 'first_name', 'value' => 'Dominic'),
array('name' => 'last_name', 'value' => 'Mertic'),
),
array(
array('name' => 'first_name', 'value' => 'Mallory'),
array('name' => 'last_name', 'value' => 'Mertic'),
),
)
);