I'm using the Salesforce API via a web service in a .NET solution. I can successfully add an entity to Salesforce, and all of the cost related information is successfully added. When I try to do the same thing for a different entity, some of the data doesn't get added. The data is being correctly set on the .NET object that represents the entity, but the difference is that for the entity that's not fully updating, the corresponding property '...FieldSpecified' is 'false' for the fields that fail to update, so I'm sure this is the problem:
i.e. for My_Entity__c, the property
cost__cFieldSpecified = false
However the actual value of cost__c is correctly set, and is in the correct format (e.g it's correctly set for My_Entity__c as 90.5)
What is causing the FieldSpecified to be set to false, and how do I fix it?