Client script for manager's manager

User_267
Tera Contributor

We have two fields- user ,  manager's manager.

In user field - if we enter abel tutor name approval will trigger to Abel tutor manager.ex: abhraham lincoln (configured through flow)

In manager's manager field- it should be trigger to abhraham lincoln manager.

Need client script for this. It should autopopulate manager's manager based on user field.

6 REPLIES 6

AshishKM
Kilo Patron
Kilo Patron

Hi @User_267

 

If the user field is reference type then use the 2 level of dot walking for manager's manager.

Where are you trying to use this code, form or some catalog item. 

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

This is based on few other requirements so I cannot use dot walking in the flow. I should use only script to autopopulate

Can you auto populate the manager via script, if yes. then add one more ".manager" for next level.

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Ankur Bawiskar
Tera Patron
Tera Patron

@User_267 

is there a need to have that variable?

you can use GlideAjax in that onChange client script and populate

what did you try so far?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader