You need to sign in to do that
Don't have an account?
iSfdc
Relationship (semijoin queries) not working
Hi,
Got stuck-up in a Semi-join query which is not working !
I have written a query to select all the users under a Manager.I am not getting the output for this query, im getting an exception.
Code:
var users=sforce.connection.query("select FirstName,LastName from User where UserRoleId IN (Select Id from UserRole where ParentRoleId='00E20000000iMZD')");
Any pointers on this would help.
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_relationships.htm
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_relationships.htm
Message Edited by aamoros on 11-25-2008 07:30 AM
Im using API 14.0 version only, duno where is the bug. if i execute them seperately its working.
i.e. fetching for isers' details - working fine
i.e.fetching for Roles seperately - working fine
..When i combine into a semi join , its not working
Main query limit: In the main WHERE clause, the left operand of any semi-join or anti-join query must query a single primary ID field. However, the selected field in a subquery can be a foreign key.
roleuse=rolesusers.getArray('records');
Hi UG,
Try this for a work around: