function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CarteBlancheCarteBlanche 

using Nusoap to update custom object

Hi guys, looking for help - I am using PHP 5.2.5 with nusoap

I have a custom object called "Persons" (singular, Person) that I would like to update.  The code I am running is:

$id = $_POST['Id'];

$person1 = new sObject('Person__c',
    $id,
    array(
       'Address1__c' => 'new address1',
       'Address2__c' => 'new address2'
    ),
       array('State__c, 'Zip__c')
    );

$updateResult = $sfdc->update($person1);



And I am getting the error

"Id not specified in an update call [statusCode] => MISSING_ARGUMENT) [id]"

Can you tell me what I am doing wrong?

Thanks



Tran ManTran Man
Any reason to use NuSoap?  We have a PHP toolkit based on Soapclient introduced in PHP 5.x.