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
avideoncrmdevavideoncrmdev 

.Net API data type double, currency

Using the SF API to integrate with a c-sharp web app, whenever I try to insert a record that has a field of SF datatype currency or numeric, the record is inserted with a null value in that field.  If I change the field to required in SF, the record does not get inserted, as expected.  I created my project by making a web reference to the enterprise wsdl as in the examples. 

 

How do I insert a value into the Numeric type field?

 

 

 

 

Thanks in advanced,

 

John

Best Answer chosen by Admin (Salesforce Developers) 
avideoncrmdevavideoncrmdev

Just solved my own problem.  I forgot to set the equivalent field "specified" to true.  So for example, where I was trying to update:

 

---- 

payment.Amount__c = total;  // where total is a double

----

 

I forgot to add

 

----

payment.Amount__c = total;

payment.Amount__cSpecified = true;

----