- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 11:50 AM
Hello, i have created custom scoped application in which i have field employee number, i want to auto populate this employee number from user (sys_user) table, but i can't do this. i have created client script but it didn't work.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 01:14 PM
Hi @Mahmood Ahmad ,
In this case you can do g_user.userID to get the user ID of user and then you can do glideAjax call to get the employee number and return in your script include.
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
To call GlideAjax from Client script you can use below link.
Thanks
Vijay Balotia

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 11:59 AM
Hi @Mahmood Ahmad,
in client script you don't have to use glide record query you can simple use g_user objects.
For more info on g_user object can refer below link
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 12:08 PM
i have tried to show employee number in info message, but its showing empty message. i think this is scoped and global issue.
g_form.addInfoMessage( g_user.employee_number);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 01:14 PM
Hi @Mahmood Ahmad ,
In this case you can do g_user.userID to get the user ID of user and then you can do glideAjax call to get the employee number and return in your script include.
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
To call GlideAjax from Client script you can use below link.
Thanks
Vijay Balotia