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
ParamParam 

Query to Case

Hi

I am new to sforce. i run the sample java code. i can see the infromation related to the account. and do the updates.

now i am trying to see the cases, by changing the query, (select * from cases). i am getting error.

could u please help me.

thank u

 

EnderEnder
Currently, you must specify your field names, "select *" is not valid SOQL. Try "select id from case" and expand as necessary.
DevAngelDevAngel

Is there any additional info about the error (error message)?

Just changing the "from" clause will not be enough.  You will be getting a completely different object back that you will need to cast the result into.  Please be more specific about the error and post the code that is in question.

JyoshvJyoshv

Is there a sample to create a case and query cases for a particular user/account?

SuperfellSuperfell

http://wiki.developerforce.com/index.php/Integration scroll down to the java section, there are samples for the partner API. (there may not be a specific one for case, but it works the same way for all object types)