Set the current line manager for requestor for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-18-2024 09:03 PM
Hi i have service catalog and in that i need to populate the current line manager for requestor for field currently it is fetching value of logged in users manager , and the current_line_manager variable is reference field and its default value is javascript:gs.getUser().getManagerName so even if we changed the requested for it taking logged in users manager name
tried below script include and client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-18-2024 10:31 PM
How to use SN Utils?! O man a post in a community threat is not big enough for that. Using SN Utils a world would open for you. Everyone should use SN Utils!
Anyway, when having SN Utils active, you can simply double click the label of a field, and a popup appears where you can directly add a value, in this case a sys_id.
Else you can do this for example through background script. More work ofcourse, with SN Utils it would just be 5 seconds?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-18-2024 09:42 PM
Do you really need to be populating a variable on the form? Is it editable by the person filling in the form?
Why not just get the manager from within the Workflow or Flow itself?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-18-2024 09:50 PM
hii jim yes need to populate the variable on form when and requested for field is editable and when we select the option change of line manger catalog which in order guide of request for service then there is option we get change of line manager for single person so when we select that one then requestor for varibale is read only and curretn line manager filed is populating with logged in users manager name even we select the requestor for is another user
