
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 10:29 AM
Hi, I am working on a request catalog form with orchestration. I need to find a way to pull the user name field from the requested for field instead of the logged-in user. I am currently using a catalog client script with the code below to pull the user name but this gives me the logged in user name instead of the requested for. Any advice on how to get the user name for requested for?
function onLoad() {
var userID = g_user.userName;
g_form.setValue('user_name',userID);
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 11:12 AM
I got the mistake that you are doing @juliochacon23 In client script code of 7th line change sysparam_sys to sysparm_sys and also change script include 5th line sysparam_sys to sysparm_sys .Then it will definitely work please check onces
If my solution helps you please mark my answer as accepted and helpful.
Thanks and Regards
Uday Kumar Valapudasu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 12:09 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 10:06 AM
Thanks, I tried it not sure if I did it correctly. I get an error msg. See screenshot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 12:31 PM
Hi @juliochacon23 Copying the code directly won't give results for your reference i sended it's ok @juliochacon23 send me your variable names of (user name) and (requested for) i will send the code for your requirement in just 2 min.
Please mark my response as helpful and accepted solution incase of any doubt please ask me @juliochacon23
Thanks and regards
Uday Kumar Valapudasu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023 09:16 AM
Sorry for the late response Uday. Here are the variable names
user_name
requested_for
Let me know if you need more info
Thanks!!
Julio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023 09:32 PM
Hi @juliochacon23 Change your Script Include name to "user_name" then it work's fine.
If my solution helps you please mark my Solution Accepted and Helpful.
Thanks and regards
Uday Kumar Valapudasu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 10:44 AM
I must be doing something wrong @Uday_Kumar . Nothing comes up for user name. The field is blank. See screenshots
Script Include
Catalog Client Script
Thanks for helping me with this.
Julio