我一直在尝试使用 simple_salesforce
更新嵌套对象特别是一直在尝试更新 Owner
Case
中的字段对象。
from simple_salesforce import Salesforce
sf = Salesforce(username = 'username',password = 'password',security_token='security_token', sandbox = False)
sf.Case.create({'Description':'stuff in description','Owner':'Owners User'})
每当我尝试插入时,我都会收到以下错误:
响应内容:
[{u'errorCode': u'INVALID_FIELD', u'message': u'The value provided for foreign key reference Owner is not a nested SObject'}]
如有任何帮助,我们将不胜感激。
最佳答案
我遇到了同样的错误,结果证明您必须使用 OwnerId
字段并传递所有者的 ID。
关于python - 如何使用 simple_salesforce 更新嵌套对象?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27481043/