theBeastMaster
Mega Guru
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
04-27-2020
04:10 AM
In this video, I have demonstrated how we can integrate Skype or MS Teams into ServiceNow.
Here are the steps followed to make it work:
1. upload image or icon of skype or ms teams into the database which we will later refer to our UI Macro.
2. Create a UI Macro with the code to display the icon as well as functionality for click. The logic for the skype/ms teams to open is as below:
function userWindow(reference){//incident.caller_id
var refVal = reference.split('.');
var fieldName = refVal[1];
var emailId;
var sysId = g_form.getValue(fieldName);
var user = new GlideRecord('sys_user');
if(user.get(sysId)){
emailId = user.email.toString();
}
if(emailId){
open('sip:'+emailId, '_top');
}else{
g_form.addErrorMessage('User does not have email in ServiceNow');
}
}
3. After the second step, refer to this macro in the user field you wish to display this icon. Right-click the field and select the configure dictionary and update the Attributes section with the macro name.
4. All set now, click on the icon and you can chat with the user selected in the field.
Please mark as helpful if this post is beneficial for you.
- 1,825 Views
3 Comments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.