logo

NJP

ServiceNow integration with Skype, MS Teams

Import · Apr 27, 2020 · article

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.

Labels:

View original source

https://www.servicenow.com/community/developer-blog/servicenow-integration-with-skype-ms-teams/ba-p/2333226