function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BNG Holdings IncBNG Holdings Inc 

"owner" field invalid in API

I'm trying to use the "owner" field on a custom object through API.

 

I keep getting the error:

 

No such column 'Owner' on entity 'ISOOffice__Merchant_Application__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.

 

Here is the part of the QUERY:

ISOOffice__Merchant_Application__c WHERE Owner="Pre-Boarding" AND CreatedDate...

 

I tried appending '__c' to Owner but that didn't work. On the salesforce website it doesn't list what to use for Owner in the API other than Owner. Also the WSDL has it listed as Owner as well. Any ideas as to what is going wrong and how to fix it?

 

Thank you in advance.

VM_SFDCVM_SFDC

There is no "owner" field on the custom object. When you run into these problems best thing is to go to the debug shell and the workbench and try describing the object and check the list of fields. Also you can try running the query on the debugshell or workbench. That's the best way to validate your queries.