You need to sign in to do that
Don't have an account?
msreekmatt
running soql as user through api
I want to get a count of leads owned by a user and all his sub-ordinates through API. how do I achieve this ? Is there a way to run soql as a user? any other suggestions other than gfiring seperate soql for each sub-ordinates?
Hi msreekmatt,
Yes you can do this using Apex Explorer and Ecllipse plugIn. For logging in you need your user id/name and password=password+securitytoken(for that user). To generate the security token for the user in question login as that user in your org and click on setup-<personal information-> reset security token. An email would be sent to your emailid. Now you can use this in both Eclipse and Apex Explorer to run your SOQL as user. Make sure that API permission is enabled for your profile.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Ispita, I was looking for a solution to run the soql through API and not through any client tools.