Client script for manager's manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 05:00 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 05:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 05:26 AM
This is based on few other requirements so I cannot use dot walking in the flow. I should use only script to autopopulate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 05:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 06:32 AM
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?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader