php - Updates through Salesforce API not committing -


i trying update contact using salesfore partnerclient in php (13.1). here code running:

$sobject = new sobject(); $sobject->id = '003e000000hyhoxiai'; $sobject->fields = array(   'title' => 'test update',   'custom_filed__c' => 'foo' ); $sobject->type = 'contact';  // run update try {   var_dump($sf->update($sobject)); } catch(exception $e) {   // have error } 

the above runs fine, following response:

object(stdclass)#9 (2) { ["id"]=> string(18) "003e000000hyhoxiai" ["success"]=> bool(true) } 

so looks correct, , i've ensured user connecting has write-access. however, when looking @ target contact on salesforce, can see last update coincides timestamp of running above update, fields i've specified not updated. pointers on missing?

fyi, faces same issue, solution pass in array of sobjects - examples had seen failed include detail. looking @ api docs, array needed - strange update() method not indicate in it's response.


Comments