populate field on record producer

Andre8
Giga Guru

I am trying to populate the site field on a record producer using a catalog client script and glideAjax. The site value comes from the user record:
find_real_file.png
I have created the field on the record producer:
find_real_file.png
Site variable:
find_real_file.png
Catalog Client Script:
find_real_file.png
Script Include:
find_real_file.png
Site field on user record:
find_real_file.png

1 ACCEPTED SOLUTION

Thanks, I was able to resolve this by using a catalog client script and omitting the script include

find_real_file.png

View solution in original post

9 REPLIES 9

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You might use Catalog Data Lookup Definition for this. Zero code involved.
- 2021-02-11 Catalog Data Lookup Definition on any table, eliminating Catalog Client Scripting

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 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

LinkedIn

Andre8
Giga Guru

This is not a global application

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

u_site field on User table is reference but your variable is single line

so update as this

return grUser.u_site.getDisplayValue();

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

would this be correct?
find_real_file.png