• 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?
I’ve a requirement from the users to create custom link on account object. (Simple Task).
 
The hard part is not a link to web page, but it is a link to a file. I know have to use a JavaScript execute this link. I have tried some like this, but it does not work.   
 
<script>
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "\\dhsrv01\Accounthierarki\DesignReport.csv";
oShell.ShellExecute(commandtoRun,"","","open","1");
</script>  

Do any one know the answer?
 
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?