You need to sign in to do that
Don't have an account?
CarteBlanche
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
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 Man
Any reason to use NuSoap? We have a PHP toolkit based on Soapclient introduced in PHP 5.x.