View Single Post
  #5  
Old 05-30-2008, 11:00 AM
ejones ejones is offline
Junior Member
 
Join Date: Jan 2008
Posts: 6

Thanks for the example. Helpded alot.

However I am still running into problems. My code is this:

PHP Code:
        $sObjects = Array();
        
$fieldset = Array();
        
        
$fieldset['SA_ID__C'] = '3';
        
$fieldset['NAME'] = 'Grand Hotels SLA - UPSERT BABY!';

        
$sObject = new sObject();
        
$sObject->type 'Opportunity';
        
$sObject->fields $fieldset;
        
array_push($sObjects$sObject);
       
        try {
            
$this->setSalesForceConnection(blah blah);
            
$this->setSoapClient(blah blah);    
            
$mylogin $this->getSalesForceConnection()->login(blahblah);
            
            
$results $this->getSalesForceConnection()->upsert("SA_ID__C",$sObjects);
            return 
$success;
        }
        catch (
Exception $e) {
            
$this->setErrorCode("***WARNING!*** ERROR CONTACTING SALESFOCE: ".$e->faultstring);
            return -
1;
        } 
I have looked it over a bunch of times and from what I can tell it *should* work. Unfortunatly I keep getting back the following:
***WARNING!*** ERROR CONTACTING SALESFOCE: INVALID_FIELD: No such column '' on entity 'opportunity'.

Any ideas on what i did wrong?
Reply With Quote