【问题标题】:Salesforce Opportunity update using api使用 api 更新 Salesforce 机会
【发布时间】:2012-08-09 04:23:46
【问题描述】:

请帮助我,我正在使用 SalesForce Enterprise API 通过我的 C# 代码更新机会:

QueryResult query = service.query("SELECT ID,ChargentSFA__Gateway__c FROM Opportunity WHERE       AccountId = '" + accountItem.Id + "'");
if (query.records != null && query.records.Length > 0)
{
Opportunity opportunity = query.records[0] as Opportunity;
SaveResult update_result = new SaveResult();
opportunity.Acct_Email__c = accountItem.PersonEmail;
update_result = service.update(new sObject[] { opportunity })[0];
if (update_result.success)
{
// TODO
}
else
{
Logs(update_result.errors[0].message);
// TODO
}
}

所有数据输入都是真实的,但它却向我显示了一个错误

StatusCode.FIELD_FILTER_VALIDATION_EXCEPTION

消息:“请选择活动网关记录”

错误字段:ChargentSFA_网关_c

请给我你对这个错误的意见。

谢谢!

【问题讨论】:

    标签: salesforce


    【解决方案1】:

    机会所指的 Chargent CC 网关对象已停用。并且错误消息来自阻止引用非活动网关的验证规则。

    有关更多信息,请参阅文档here

    【讨论】:

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