请帮助我,我正在使用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
消息:“请选择Active Gateway记录”
错误字段:ChargentSFA_ 网关 _c
请就此错误向我提出意见。
谢谢!