catalog client script to get logged in username, email address, phone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2024 11:08 AM
Hi,
Pls assist me to create catalog client script to get logged in username, email address, phone.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2024 11:12 AM - edited 07-06-2024 11:29 AM
Hi @BanuMahalakshmi ,
Instead of catalog client script, you can use 'auto populate' feature
Steps:
1. Create a variable of type 'request for' as below, this will have the current logged in user.
2. Now, we will create other variables which will be dependent on the 'requested for' variable. Check the screenshots below:
Click on 'Auto populate' section and select as below:
Similarly, do it for 'Email':
The output will be as below:
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 01:50 PM
I find this solution ideal as it introduces less technical debt when you don't have to manage script. Does this work when the requested for is changed on the form as opposed to on load?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 06:33 PM
Yes, It is dynamic and will work onChange as well.
I am logged in as 'system admin' and when I change the 'requested for' then also it will work:
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2024 11:17 AM
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0779000
———————————————-
Please consider marking my reply as Helpful👍 and/or Accept Solution✅, if applicable. Thanks!