【问题标题】:.NET issues Updating (Date / Bit fields) SalesForce Enterprise WSDL.NET 问题更新(日期/位字段)SalesForce Enterprise WSDL
【发布时间】:2016-02-14 07:11:17
【问题描述】:

我们使用下面的代码更新了 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})

【问题讨论】:

标签: .net wsdl salesforce enterprise


【解决方案1】:

您需要同时设置 value 字段(为您要发送的值)和指定字段(告诉 .NET 发送它),例如

updateQuery. Delivered_to_Customer__c = true
updateQuery. Delivered_to_Customer__cSpecified = true

【讨论】:

    猜你喜欢
    • 2012-07-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多