In short, I am using the Salesforce PHP Toolkit Partner API, am trying to update an opportunity and get a success response, but the opportunity in question does not update in Salesforce.
I have the following code to update an opportunity:
//MySforceConnection omitted
$opfields = array(
'StageName' => 'Closed Won',
'IsClosed' => 'true'
);
$sObject = new Sobject();
$sObject->fields = $opfields;
$sObject->type = 'Opportunity';
$sObject->Id = $opid;
$response = $mySforceConnection->update($sObject);
When run, I receive a success code = 1 in my log.
I checked SF validation rules, and none are set on Opportunity.I did notice there were 6 triggers. The ones I could read did not indicate any API blocking. However I was restricted from 4 of them, so I can't tell what they are doing.Any help will be greatly appreciated! Thank you.2 respuestas
Thank you for your response Daniel. I actually was able to get this working. If you see in my code above I say "new Sobject(...)" on line 07. The actual command is "new sObject(...)". My camelcase was wrong and it broke the whole thing. Triggers had nothing to do with it.