- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 12:46 PM - edited 09-25-2024 01:03 PM
I am creating a Service Portal with a reference field.
This field is Selecting the User from the User table.
I have 6 fields that I am adding to extract information from the user selected in the first reference field
- employee_id
- title
- manager
- company
- department
- location
I have created this Script Include:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 01:24 PM
Are you creating a Catalog Item with variables, to use in the Service Portal? If so you can do this in the Utah and later versions without any scripts using the variable Auto-populate feature. On each of six variables, select the user reference as the dependent question, then select the field you want from the Dot walk field.
If this is not a Catalog Item, or you are not yet on Utah or later, Is your Script Include Client callable with
...Object.extendsObject(AbstractAjaxProcessor, {
on line 2? If so, add some gs.info lines to log if the script is running, and to see how far it is getting, what it is returning, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 01:24 PM
Are you creating a Catalog Item with variables, to use in the Service Portal? If so you can do this in the Utah and later versions without any scripts using the variable Auto-populate feature. On each of six variables, select the user reference as the dependent question, then select the field you want from the Dot walk field.
If this is not a Catalog Item, or you are not yet on Utah or later, Is your Script Include Client callable with
...Object.extendsObject(AbstractAjaxProcessor, {
on line 2? If so, add some gs.info lines to log if the script is running, and to see how far it is getting, what it is returning, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 06:32 AM
Thank you for your answer. I am still learning, and I quite forgot to use Auto-populate and use scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 09:34 AM
You are welcome. I'm happy to help!