You need to sign in to do that
Don't have an account?
jwolf
Accessing UserRole through UserRole.ParentRoleId relationship
How is field on UserRole ParentRoleId different than any other reference field? I want to make a query to get the name of the parent role, but I get an error that this relationship is not recognized. The query I want to make is this:
[select Name, ParentRoleId, ParentRole.Name from UserRole where Id = :someId]
Is this possible?
In my opinion, you can not assign the parentRole.name in SOQL language. It will throw an error. UseRole standard object does not provide access to parentRole and you can not fetch parent role name.