找不到 SalesForce 对象
Can't find SalesForce Object
我在使用 SalesForce 时遇到了一些问题,我以前从未使用过它,所以我不完全确定这里出了什么问题。我正在使用 simple_salesforce
python 模块。我已经成功地从 SalesForce 标准对象中提取数据,但是这个自定义对象给我带来了麻烦。我的查询是
result = sf.query("Select Name from Call_Records__c")
产生此错误:
Traceback (most recent call last):
File "simple.py", line 15, in <module>
result = sf.query("Select Name from Call_Records__c")
File "/usr/local/lib/python2.7/dist-packages/simple_salesforce/api.py", line 276, in query
_exception_handler(result)
File "/usr/local/lib/python2.7/dist-packages/simple_salesforce/api.py", line 634, in _exception_handler
raise exc_cls(result.url, result.status_code, name, response_content)
simple_salesforce.api.SalesforceMalformedRequest: Malformed request https://sandbox.company.com/services/data/v29.0/query/?q=Select+Name+from+Call_Records__c. Response content: [{u'errorCode': u'INVALID_TYPE', u'message': u"\nSelect Name from Call_Records__c\n ^\nERROR at Row:1:Column:18\nsObject type 'Call_Records__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name.
Please reference your WSDL or the describe call for the appropriate names."}]
我已经尝试过使用和不使用 table 名称和字段名称的 __c
,仍然无法解决这个问题。有什么明显的错误吗?
尝试使用 -
result = sf.query("Select Name from CallRecords__c")
确保你的结果是 Call_Records__c/CallRecords__c
Call_Records__c 结果 = sf.query("Select Name from Call_Records__c")
要么
CallRecords__c 结果 = sf.query("Select Name from CallRecords__c")
我在使用 SalesForce 时遇到了一些问题,我以前从未使用过它,所以我不完全确定这里出了什么问题。我正在使用 simple_salesforce
python 模块。我已经成功地从 SalesForce 标准对象中提取数据,但是这个自定义对象给我带来了麻烦。我的查询是
result = sf.query("Select Name from Call_Records__c")
产生此错误:
Traceback (most recent call last):
File "simple.py", line 15, in <module>
result = sf.query("Select Name from Call_Records__c")
File "/usr/local/lib/python2.7/dist-packages/simple_salesforce/api.py", line 276, in query
_exception_handler(result)
File "/usr/local/lib/python2.7/dist-packages/simple_salesforce/api.py", line 634, in _exception_handler
raise exc_cls(result.url, result.status_code, name, response_content)
simple_salesforce.api.SalesforceMalformedRequest: Malformed request https://sandbox.company.com/services/data/v29.0/query/?q=Select+Name+from+Call_Records__c. Response content: [{u'errorCode': u'INVALID_TYPE', u'message': u"\nSelect Name from Call_Records__c\n ^\nERROR at Row:1:Column:18\nsObject type 'Call_Records__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name.
Please reference your WSDL or the describe call for the appropriate names."}]
我已经尝试过使用和不使用 table 名称和字段名称的 __c
,仍然无法解决这个问题。有什么明显的错误吗?
尝试使用 -
result = sf.query("Select Name from CallRecords__c")
确保你的结果是 Call_Records__c/CallRecords__c
Call_Records__c 结果 = sf.query("Select Name from Call_Records__c") 要么 CallRecords__c 结果 = sf.query("Select Name from CallRecords__c")