• alex_manh
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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
        )
)
 
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);
 
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.
  
  • March 30, 2007
  • Like
  • 0