- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 05:55 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 06:36 AM
The following works for me. Corrected forEach and u.mobile_phone
new GlideQuery('sys_user')
.where("active", true)
.where('user_name', 'abel.tuter')
.select('user_name', 'sys_id', 'mobile_phone')
.forEach(function(u) {
gs.print('\n' + 'user name' + u.user_name + '\n' + 'sys_id is' + u.sys_id + 'mobile number' + u.mobile_phone);
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 06:36 AM
Hi @shubhamsriv
Use the below script
Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution
Thanks
Eshwar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 06:36 AM
The following works for me. Corrected forEach and u.mobile_phone
new GlideQuery('sys_user')
.where("active", true)
.where('user_name', 'abel.tuter')
.select('user_name', 'sys_id', 'mobile_phone')
.forEach(function(u) {
gs.print('\n' + 'user name' + u.user_name + '\n' + 'sys_id is' + u.sys_id + 'mobile number' + u.mobile_phone);
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 06:36 AM
Hi @shubhamsriv
Use the below script
Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution
Thanks
Eshwar