• Allan Lorentzen 6
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Do any body how if it’s possible to calculate the number of managers above the user.
 
Basically, I would like a field on the user object that indicate the manager level.
 
Example:
If the user’s “manager field” = null, then Level 1
If the user’s manager’s “manager field” = null, then Level 2
If the user’s manager’s manager’s “manager field” = null, then Level 3
Etc.
Else “Level 5”.
 
A daily trigger should set this value for each user records.
 
Does any body have an idea if it’s possible? Big or medium task?