In order to use the upsert method you have to have a external key set on a field within the object in Salesforce. You can use the ID field to upsert, but we use a external field that is a text field
and the correct line would be:
ORPHP Code:$results = $client->upsert("external_field__c", $sObjects);
PHP Code:$results = $client->upsert("external_field__c", array($sObject));
~Mike



LinkBack URL
About LinkBacks
Reply With Quote




Bookmarks