[英]python simple_salesforce query all
I am using the package simple_salesforce to access Salesforce data. 我正在使用包simple_salesforce访问Salesforce数据。 I am querying the tables in Salesforce this way: 我以这种方式查询Salesforce中的表:
from simple_salesforce import Salesforce
sf = Salesforce(username = '', password = '', security_token = '')
sf.query("SELECT Id, Name FROM Main__c LIMIT 2000")
This works perfectly fine, but if I want to query all the columns instead, things start throwing errors. 这工作得很好,但是如果我想查询所有列,事情就会开始抛出错误。
I tried: 我试过了:
sf.query("SELECT * FROM Main__c LIMIT 2000")
sf.query("SELECT All FROM Main__c LIMIT 2000")
Here is the error: 这是错误:
Response content: No such column 'ALL' on entity 'Main__c'. If you are
attempting to use a custom field, be sure to append the '__c' after the
custom field name. Please reference your WSDL or the describe call for the
appropriate names."}]
I am not sure how to proceed. 我不确定如何进行。 How can I accomplish querying all the columns? 如何完成对所有列的查询?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.