Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用外部自定义字段更新 Salesforce 帐户?我已经尝试过sf.Account.Update("Custom_Field__c:{}.format(field), data)了,但我似乎无法让它工作。
sf.Account.Update("Custom_Field__c:{}.format(field), data)
我知道这真的很晚了,但万一其他人偶然发现:
答案是肯定的,但是您的代码格式不正确。
您询问的更新方法实际上是小写的,它通常需要两个参数来正确评估,一个有效的 SF Id 作为字符串,以及您想要更新的数据作为字典。因此,要解决您的问题中发生的问题,它看起来像:
sf.Account.update("15characterIdoftheAccount", {"Custom_Field__c:{}.format(thevalueyouwanttoshowupinSF)})