You need to sign in to do that
Don't have an account?

PHP toolkit update call
Hi,
I am using 1.0.6 version of the PHP toolkit and trying to call update().
This is what I am trying to update:
SObject Object
(
[Id] => a0O30000000I3BQEA0
[type] => CreditSale__c
[fields] => Array
(
[Id] => a0O30000000I3BQEA0
[StatusCode__c] => Submitted
[type__c] => invoice
)
(
[Id] => a0O30000000I3BQEA0
[type] => CreditSale__c
[fields] => Array
(
[Id] => a0O30000000I3BQEA0
[StatusCode__c] => Submitted
[type__c] => invoice
)
)
with this code:
$fieldsToUpdate = array('Id'=>$cc,'StatusCode__c'=>'Submitted','type__c'=>'invoice');
$sObject = new SObject();
$sObject->type = 'CreditSale__c';
$sObject->Id = $cc;
$sObject->fields = $fieldsToUpdate;
print_r($sObject);
$acct = $client->update($sObject);
$sObject = new SObject();
$sObject->type = 'CreditSale__c';
$sObject->Id = $cc;
$sObject->fields = $fieldsToUpdate;
print_r($sObject);
$acct = $client->update($sObject);
but this call always fails with "[sf:INVALID_TYPE] INVALID_TYPE: Must send a concrete entity type."
Does anyone have a fix for this problem? I seem to be going round in circles.
Thanks in advance.
would you mind explaining how you fixed the issue?
Thanks.