Copied User Email, Department from user table to Catalog form based on Requested For VariableSet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 03:52 AM
Hi,
I need to populate the User Email, Department based on Requested For field on catalog item form. But the Requested For field is in VariableSet. I written the below OnChange catalog Client script and it did't work. Please give me an correct code to get the field values from user table based on Requested For VariableSet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 04:08 AM
I am not 100% sure, but did you try with auto populate feature on Variable ?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 05:13 AM
Thanks @Dr Atul G- LNG ,
I had tried by using Auto Populate option, But It's not allowing to select the Requested For field. I'm thinking Auto Populate is not allowing for Variable Set.
Thanks&Regards,
Rajesh B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 10:57 AM
I tried in variable set ( Single Row)
With MRVS
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 04:15 AM
Hi @Rajesh Bandila ,
Please use Autopopulate feature provided by ServiceNow available from Utah Version. you can see below link how it can be used.
Thanks,
Danish