python - simple-salesforce not recognizing custom object -
i using simple_salesforce , records of custom object called "ser__condition__c". know fact that name because got list of table names our administrator.
"api" instance of "simple_salesforce.salesforce".
command i'm executing:
pprint(api.query('select id ser__condition__c'))
which returns error:
file "path\to\lib\simple_salesforce\api.py", line 698, in _exception_handler raise exc_cls(result.url, result.status_code, name, response_content) simple_salesforce.api.salesforcemalformedrequest: malformed request https://xxx.salesforce.com/services/data/v29.0/query/?q=select+id+from+ser__condition__c. response content: [{'message': "\nselect id ser__condition__c\n ^\nerror @ row:1:column:16\nsobject type 'ser__condition__c' not supported. if attempting use custom object, sure append '__c' after entity name. please reference wsdl or describe call appropriate names.", 'errorcode': 'invalid_type'}]
using exact same command default object returns records expected:
pprint(api.query('select id account'))
the same holds true these two:
api.account.get('xxxxxxxxxxxxxxxxxx') api.ser__condition__c.get('xxxxxxxxxxxxxxxx')
it permissions issue. make sure ser__condition__c object visible user running query as.
Comments
Post a Comment