On-call Schedule - Add Phone number along with Username and group name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Everyone,
I have a client requirement to add phone on the main widget of On-call schedule where it's highlighted with Yellow. Please let me know if there is a way to add phone number here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Neetika Gupta ,
There is a video on ServiceNow Documentation YouTube about contact preferences.
On-Call Scheduling | Set up on-call contact preferences - YouTube
*******************************************************************************************
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I just want the phone number to be displayed under username so that they don't have to click one more time in order to find the mobile number of the person in shift
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Yes, you can, but it will require a bit of customisation: out of the box the widget displays the user name (or group) and pulls the mobile phone (or business phone) field from the user profile, while the group’s On call Phone field is available but not surfaced in the main card, and you’ll need to modify the widget’s UI Macro or Service Portal widget to include and display the phone number (for example pulling sys_user.mobile_phone or sys_user.phone, or the group’s on call phone) alongside the name, then update the HTML/CSS and possibly scripting to ensure it appears under the username, test across browsers and mobile views, document the change for upgrades and optionally add a system property to turn the phone display on/off for flexibility......
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
To add the phone number, edit the widget:
-
Open widget: Service Portal > Widgets > On-Call Schedule.
-
In Server Script, fetch phone:
phone: user.phone || user.mobile_phone || 'N/A'inside the data.members.push() block.
-
In the HTML template, display it:
<small>Phone: {{member.phone}}</small> -
Save and refresh the portal.
That’s the simplest way to show phone numbers along with names and groups.
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
YouTube: https://www.youtube.com/@learnservicenowwithravi
LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/
