You need to sign in to do that
Don't have an account?
JSBrian
Querying Tasks and User Table
I am trying to write a query to return any open tasks by all members who report under me.
select t.ownerid, t.createdbyid, t.description,
(SELECT u.id from user u where direct_manager__c.id = 'myidgoeshere')
from task t
where t.isClosed = false
This - SELECT u.id from user u where direct_manager__c.id = 'myidgoeshere' alone gets me all the id's for this people. I think need to take that id and query the tasks.
I have been trying a variety syntax changes but can't seem to get it. Any tips?
Thanks
select t.ownerid, t.createdbyid, t.description,
(SELECT u.id from user u where direct_manager__c.id = 'myidgoeshere')
from task t
where t.isClosed = false
This - SELECT u.id from user u where direct_manager__c.id = 'myidgoeshere' alone gets me all the id's for this people. I think need to take that id and query the tasks.
I have been trying a variety syntax changes but can't seem to get it. Any tips?
Thanks
Give this a try.