You need to sign in to do that
Don't have an account?

Why I can not use " select * " retrieve data from salesforce?
Hi all,
Today I tried to use the following code to retrieve all the data in case table.
QueryResult qr = binding.queryAll("select * from Case");
The result is : NULLPointerException.
how can I retrieve all the data from case?
Another question is : com.sforce.soap.enterprise.sobject._case, does this class for the following use?
QueryResult qr = binding.queryAll("select ?? from Case");
for (int i = 0; i < qr.getRecords().length; i++)
_case c = (_case) qr.getRecords(i);
..................................................................

You must specify each field that you wish returned in the SOQL Select. The "*" is a SQL construct, not a SOQL capability.

what does this class for com.sforce.soap.enterprise.sobject._case? Is it a mapping for table case?