我们使用以下代码更新3个字段 - 状态(字符串),日期和布尔值(SalesForce Enterprise WSDL),只更新状态,但不更新日期和布尔值。甚至尝试使用“_cSpecified = True”作为布尔值,但它没有用。请帮忙。
'Update SalesForce Status to 9, Delivery Date and Delivered Bit Flag
Dim updateQuery As Obj = New Obj
updateQuery.Id = ReportID
updateQuery.Deliver_to_Customer_Date__c = DateTime.Now.Date.ToString.Replace("#", "").Substring(0, 10)
updateQuery.Delivered_to_Customer__cSpecified = True
updateQuery.Status__c = "9 - Pdf report delivered to customer"
Dim SaveResults() As SaveResult = _sForceRef.update(New sObject() {updateQuery})
答案 0 :(得分:0)
您需要设置值字段(要发送的值)和指定字段(告诉.NET发送它),例如
updateQuery. Delivered_to_Customer__c = true
updateQuery. Delivered_to_Customer__cSpecified = true