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
MILKMILK 

CREATE NEW OBJECT INTO SALESFORCE through API BY C#

           I want to create a record into salesforce.However, the record is created with correct data of  Sales_Memo__c field  and Product_Name__c field.But no quantity in the record of .Quantity__c field.In Salesforce, the data type of Quantity__c is 'number(18,2)'.Below is the c# coding for importing into salesforce by API.What wrong of it?

 

 

 

            SalesMemoItem.Sales_Memo__c = "a0n90000000HwEo";
                     SalesMemoItem.Product_Name__c = "Milk container";

 

         Sales_Memo_Item__c SalesMemoItem = new Sales_Memo_Item__c();

                     string str = "1";



                    SalesMemoItem.Quantity__c = Convert.ToDouble(str);


               SaveResult[] results = binding.create(new sObject[] { SalesMemoItem });