我正在尝试使用简单的salesforce更新salesforce中的案例所有者。但是,当我尝试更改案例所有者时,它没有被分配,并且案例进入了分配错误队列。
我的python代码是:
headers = {'Sforce-Auto-Assign': 'False'}
sf.Case.update("500V*******",{"OwnerId":"005***********"},headers)我希望用给定的所有者id更新案例所有者,我是否必须包括更多字段或标题?
发布于 2019-09-05 15:04:33
我使用python beatbox解决了这个问题。
python 3.X的beabox安装:
pip install -e git+https://github.com/superfell/Beatbox@master#egg=beatbox
代码:
导入beatbox
sf_username =“用户名”
sf_password =“密码”
sf_api_token = "token“
sf_client = beatbox.Client()
sf_client.serverUrl = 'https://test.salesforce.com/services/Soap/u/20.0‘
密码=字符串(“%s%s”% (sf_password,sf_api_token))
sf_client.login(sf_username,密码)
object_dict ={‘所有者Id’:‘所有者Id’,‘类型’:‘案例’,'Id':‘案例Id’}
结果= sf_client.update(object_dict)
结果
使用它,我能够成功地更新案例所有者。
https://stackoverflow.com/questions/57782676
复制相似问题