in incident table need to show teams icon if user click on it then it should take to assigned person
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2025 12:31 AM
in incident table need to show MS teams icon if user click on it then it should take us to assigned incident person Microsoft teams chat window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2025 11:09 PM
Hi @srikanthr066535 ,
to achieved this you need to create ui macro
with below script
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<a><img src="ms_tm.png" width = "25%" height = "25%" onClick = "userWindow('$(ref)')" tabindex="0" ></img></a>
<script>
function userWindow(reference){
var prefix = 'https://teams.microsoft.com/l/chat/0/0?users=';
var fname=g_form.getReference('caller_id').first_name;
var email=g_form.getReference('caller_id').email;
var subject='&amp; Message=Hi'+fname +'this is regaridng your incident'+g_form.getValue('number')+':'+g_form.getValue('short_description');
var w = getTopWindow();
var url = prefix + fname + subject;
w.open(url);
}
</script>
</j:jelly>
add that ui macro to field right click on field then configure dictionary then add these attributes 'ref_contributions=UI Macro_name'
Please go through this video for more detailed information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2025 11:25 PM
this link has the detailed explanation on how to do that
Service-Now – Microsoft Teams Integration
sharing few other links
ServiceNow MicroSoft Teams Integration ..ish | Open MS Teams Chat from icon click
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2025 02:41 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader