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
Darla.ax69Darla.ax69 

Problem updating revenue field

Hello,

I'm trying to use the API to set the revenue of a lead to $13000000.00, but when I load the updated lead via the UI (or query it after the update), the revenue has been set to $1.506 instead.

Here's the XML I'm sending:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sf="urn:partner.soap.sforce.com"
xmlns:sfobj="urn:sobject.partner.soap.sforce.com">
<soap:Header>
<sf:SessionHeader>
<sf:sessionId>***</sf:sessionId>
</sf:SessionHeader>
<sf:CallOptions>
<sf:client>InsideScoopCustConn/1.0</sf:client>
</sf:CallOptions>
</soap:Header>
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<sf:update>
<sObjects>
<sfobj:type>lead</sfobj:type>
<sfobj:Id>00Q30000004P5IZ</sfobj:Id>
<AnnualRevenue>13000000.00</AnnualRevenue>
</sObjects>
</sf:update>
</soap:Body>
</soap:Envelope>

The problem also occurs when I create a new lead with that revenue setting. This worked fine before, and I haven't changed my code recently, so I don't know what's going on... Any ideas?

Thanks,

=> Darla
Darla.ax69Darla.ax69
As of last Wednesday (3/23) I can no longer reproduce this. I didn't change anything in my code related to this, so I don't know what happened, but I'm happy to report that it's working now.

=> Darla
DevAngelDevAngel
Thats wierd.