johvargas / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

method from generated jar does not work #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Query for accounts.
QueryResult result = connection.query("select id, name, phone from Account");
2. Get contact from accounts
for (SObject x: result.getRecords()) {
    Account temp = (Account) x
    QueryResult contacts = temp.getContacts();
}

What is the expected output? What do you see instead?

Should return a QueryResult of contacts under the specific account. But it
returns null instead. Tested this on every account.

What version of the product are you using? On what operating system?

wsc-18.jar,wsc-gae.jar, google app engine 1.3.4

Please provide any additional information below.

It works fine if I do a query on contacts instead (QueryResult result =
connection.query("select contact.account.name from Contact"))

Also it seems impossible to create/update contact or other custom object.

Is this not supported?

Original issue reported on code.google.com by ferion...@gmail.com on 27 May 2010 at 10:27

GoogleCodeExporter commented 8 years ago
"select id, name, phone from Account" your query is not asking for Contact. You
should try something like:

SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account LIMIT 20

Original comment by manoj.ch...@gmail.com on 27 May 2010 at 10:33

GoogleCodeExporter commented 8 years ago

Original comment by manoj.ch...@gmail.com on 29 Sep 2010 at 6:28