Salesforce SOAP create record

前端 未结 1 1151
梦毁少年i
梦毁少年i 2021-01-21 16:38

I have the following code to insert a record (I will be inserting 1000\'s). I get a successful insert but all of the numeric fields are EMPTY in salesforce. The one text field

相关标签:
1条回答
  • 2021-01-21 17:09

    You need to set the specified flags, e.g. numeric property has an associated specified flag that controls if the .NET soap engine will actually send that property over the wire, unfortuantly the setter for the property does not automatically set the specified flag. e.g.

    ch.ChurchId__c = 9999;
    ch.ChurchId__cSpecified = true;
    ch.reportyear__c = 2013;
    ch.reportyear__cSpecified = true;
    

    The specified flags are a "feature" of the .NET soap system for certain types. (numbers & dates IIRC).

    0 讨论(0)
提交回复
热议问题