- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2022 03:43 AM
Hi all,
i have a catalog item as follows:
variable 1: Owner of the team (reference to sys_user)
variable 2: email address (single line)
variable 3: organization (singe line)
Variable 2 and 3 should change when variables 1 changes, this works for both only variable 3 is displayed with the sys_id of the organization.
Catalog client script used:
what am i doing wrong here ?
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2022 03:45 AM
You need to change the Organization variable to be of type Reference instead of Single line text.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2022 03:45 AM
Hi,
Change your 10th line to below
user.u_organisation.getDisplayValue();
Mark as correct and helpful if it solved your query.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2022 03:48 AM
FYI.
this won't work in client side.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2022 03:49 AM
organization field stays empty on the catalog item

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2022 03:45 AM
Hello,
Use getDisplayValue() for Organisation like below
user.u_organization.getDisplayValu();
Mark my answer as correct if that helps.
Regards
Regards,
Musab