- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 05:19 AM
Hi Team,
How can populate the phone number of the logged in user in catalog? Which table must be specified as a reference for the catalog item (variable)?
what is best practice?
regards,
Solved! Go to Solution.
- Labels:
-
Request Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 05:25 AM
Hi,
Instead of referencing any table you can pass default value for the phone number variable as below
javascript: gs.getUser().getRecord().getValue('phone');
where phone is the Business phone from User table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 07:01 AM
how can I fill the city field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 07:03 AM
I changed the user to Abel.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 12:31 PM
Hi
Would be better if you open a separate thread for this & mark current as closed by marking appropriate answer as correct as the title is for phone numbers & future readers may possibly get confused with the question & its appropriate answer.
Anyways, city is a field on User table? or you want it to be pulled from Location table that is field on User table.
You can use g_form.getReference() approach for the same.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 05:36 AM
Refer below link,
https://community.servicenow.com/community?id=community_question&sys_id=829a832ddb5cdbc01dcaf3231f961931
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 07:43 AM
Hi Team,
how can I fill the city field?
regards,