You need to sign in to do that
Don't have an account?
Priyanka Pawar 4
Fetch child records in self relationship
I have a User Record and ManagerId field in It.Given a particular User ID i want to get all users under the given user ID at all levels.
Is this possible in apex.This is not related to Role hierarchy.
Is this possible in apex.This is not related to Role hierarchy.
Do you need all the user's list having same ManagerId?
Thanks,
Gaurav
below script give you full role hierarchy.
so you can manage same with user record ID and where clause in SOQL.
I would provide you the solution by tommorow EOD.
Thanks,
Gaurav