function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kgibsonkgibson 

SOAP response returns success but update failed

I'm currently working with Opportunities and Opportunity Products. When Opportunity Products are added, the Amount field on the Opportunity is locked even to Administrators. Our Sales department still needs the ability to be able to edit that field.

To that end, I've created a simple update class and test case using the Perl module WWW::Salesforce. The update statement takes two arguments; the database table to update and a hash of the values. So, essentially, the source would be


<src>
my $type = "Opportunity";
my %data = ( "id" => "00600000007zZfW",
                      "Amount" => "900.00" );
update
</src>


The SOAP response says

 

<src>
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope" xmlns=urn:partner.soap.sforce.com"><soapenv:Body><updateResponse><result><id>00600000007zZfWAAU</id><success>true</success></result></updateResponse></soapenv:Body></soapenv:Envelope>
</src>


So, given that the response was a success to my update, when I view the Opportunity in the Sandbox, shouldn't the Amount be 900 bucks?