I have multiple sub role under each parent role.
Minster Principal1 Dean1 Teacher1 Teacher2... Dean2 Teacher5... Dean3.. Pricipal2...
I want to validate the current user is under
I know we can get the UserRoleID in the formula.
$UserRole.Id As there are many teachers under each Principal, it is impossible to check each user role Id including in the formula.
Is there any way that I can retrive the parent Role ID of current user, so that I can easily use it in the validation rule formula?
Or Is there any better idea to solve this kind of problem?
Please note that I am not writing code in APEX. I want to use in Validation Rule Formula of particular Object's field.