- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 04:49 AM
Hi Community,
I have created service catalog item form with multiple variables , my requirement is to auto populate the Domain variable from reference field ad_domain from sys_user table when requested for is selected . I have used catalog client script and could populate the information linked current email address, Employee ID , Unit, however not able to populate Domain name. Can someone help me how can fix this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 04:58 AM
are you trying to bring sys_domain field from sys_user?
if yes then share the script
Also why the domain field is drop down? are you setting the correct choice value in it based on what script returns?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 04:58 AM
are you trying to bring sys_domain field from sys_user?
if yes then share the script
Also why the domain field is drop down? are you setting the correct choice value in it based on what script returns?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 05:00 AM
Hi @Naresh_5120
I see the Domain is the reference field pls check if you are setting the sys_id for the domain in the client script.
If not resolved, Please share the Client script and script Include.
Please mark it helpful it
Regards
Priyatam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 05:15 AM
@Naresh_5120
Can you go to the domain variable in your catalog item, and in "Auto-populate" section. Please select "Requested for" as a Dependent question
A new field would appear "Dot walk path" where you can select "Domain"
You won't need to script I hope.
Should my response be helpful, kindly mark it as correct and close the thread to facilitate future reference for others.
Best regards,
Medi
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.