- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2022 09:05 AM
Hi All,
Can anyone help me to auto populate User details on Catalog Form using OnLoad Catalog Client Script.
As written Script include also.
Catalog Form:
Script include:
Catalog Client Script:
Variable Values:
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2022 09:30 AM
Hi,
I would suggest there is a easier and no code option available OOB which you can use to auto populate this.
Please find the steps below:
Navigate to your Catalog Item and there is a Related List named "Catalog Data Lookup Definition" as shown below:
2) Click on New button as shown above:
3) Click on new button in Related List "Catalog Matcher Variable Definitions" as shown below:
Now Configure this as shown below:
Now click on New on the other Related List where you can set the values you want as shown below:
Catalog Setter Variable Definitions:
Now just set the variable values which you want:
Here I have set Email. Similarly you can set other variable from User Table
Result:
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2022 09:30 AM
Hi,
I would suggest there is a easier and no code option available OOB which you can use to auto populate this.
Please find the steps below:
Navigate to your Catalog Item and there is a Related List named "Catalog Data Lookup Definition" as shown below:
2) Click on New button as shown above:
3) Click on new button in Related List "Catalog Matcher Variable Definitions" as shown below:
Now Configure this as shown below:
Now click on New on the other Related List where you can set the values you want as shown below:
Catalog Setter Variable Definitions:
Now just set the variable values which you want:
Here I have set Email. Similarly you can set other variable from User Table
Result:
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2022 09:30 AM
I would recommend try this steps above and you do not need to use any code here for these type of scenario.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2022 09:33 AM
Totally agree. That's also what's the article about that I mentioned in an earlier reply.
Scripting this is a waste of time, and the scripting mentioned in this topic needs several improvements concerning performance.
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2022 10:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2022 10:51 AM
They are getting info, though a sys_id correct? Shouldn't these be reference type variables?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field