To Display Current logged in user i.e admin's manager using client script

Shubham_verma
Tera Contributor

Hi,

I am not able to print current loggedin user i.e admin's manager name in alert using client script.

Can anyone help?

2 ACCEPTED SOLUTIONS

@Shubham_verma ,

try with the updated script and confirm if this worked

 

Regards,

shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

View solution in original post

@Shubham_verma ,

sure can you please create another question and tag me there as this thread is closed

 

also elaborate your requirement in that

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

View solution in original post

8 REPLIES 8

shyamkumar VK
Kilo Patron

Hi @Shubham_verma ,

 

use display BR and store the Manager in scratch pad and call that in the Client script

 

g_scratchpad.managerName =

gs.getUser().getManagerID();

 

client script

alert(g_scratchpad.managerName);

 

regards,

shyamkumar

 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

It will display manager ID not manager name right?I want to display manager's name.

@Shubham_verma 
Amended use below

 

g_scratchpad.managerName =

gs.getUser().getManagerName();

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

@Shubham_verma ,

try with the updated script and confirm if this worked

 

Regards,

shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar