
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:49 AM - edited 02-06-2024 03:59 AM
Hi,
Here is a form that users need to fill out. Once the caller field is populated, the machine name and IP address fields should auto-populate, but its not happening. I'm not sure why. Any assistance would be appreciated.
script include:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:22 AM
Hi @Community Alums ,
Please refer to the below script and make the change in query condition as per your requirement:
ScriptInclude:
=================================================================================
Client Script:
Please hit the like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.
Thanks & Regards
Jyoti Jadhav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 05:02 AM
@Community Alums
what if user has multiple machine and IP?
Your field is string type
Are you saying you want to populate those values comma separated?
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-06-2024 05:45 AM
@Ankur Bawiskar user is assigned only 1 machine. No, the machine name and ip address must be populated as shown below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:30 AM
@Community Alums
what debugging did you do?
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-06-2024 05:03 AM
Hello @Community Alums,
In script Include add query :
ast.addQuery("sys_class_name", "cmdb_ci_computer");
Instead of:
ast.addQuery("sys_class_name", "6f2bacd8dbd19450655c5bd05b9619f9");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:22 AM
Hi @Community Alums ,
Please refer to the below script and make the change in query condition as per your requirement:
ScriptInclude:
=================================================================================
Client Script:
Please hit the like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.
Thanks & Regards
Jyoti Jadhav