We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Integration of ServiceNow with Microsoft Teams using Flow designer

mahi6
Tera Contributor
Hi Team, I am new in Integration, i want to integrate servicenow with Teams by using flow designer. How many possible ways that we can achieve this. Thanks
1 ACCEPTED SOLUTION

Not applicable
Post a message in MS Teams from ServiceNow! In this simple video we use ServiceNow flow designer and an action from the Microsoft teams spoke to post a message to a teams channel when an incident is assigned to a defined group. We do all the above on Quebec instance (yes..Quebec :)). Points to ...
3 REPLIES 3

Sumanth16
Mega Patron

Hi @mahi6 ,

 

Please refer to below threads:

https://www.servicenow.com/community/now-platform-blog/flow-designer-ms-teams-integration-using-inte...

https://www.servicenow.com/community/now-platform-articles/three-ways-for-servicenow-and-microsoft-t...

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

Not applicable
Post a message in MS Teams from ServiceNow! In this simple video we use ServiceNow flow designer and an action from the Microsoft teams spoke to post a message to a teams channel when an incident is assigned to a defined group. We do all the above on Quebec instance (yes..Quebec :)). Points to ...

mahi6
Tera Contributor

Hi, 

I have tried this with UI Macro, it is not work.I am sharing code please give me correct code.

<?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="teams1.jpg" width="25%" onclick="invokeChat('${ref}')" />
</a>
 
<script>
function invokeChat(reference){
<!-- alert('Going to Teams');
var refVal = reference.split('.');
var FiledName = refVal[1];
var sysId = g_form.getValue(FiledName);
var emailId;
var user = new GlideRecord('sys_user');
if(user.get(sysId)){
emailId = user.email.toString();
--> }
 
<!--function invokeChat(reference) { -->
  var number = g_form.getValue('number');
  var short_desc = g_form.getValue('short_description');
  var s = reference.split('.');
  var tableName = s[0];
  var referenceField = s[1];
  var v = g_form.getValue(referenceField);
  var email;
  var gr = new GlideRecord('sys_user');
  if (gr.get(v)) {
    email = gr.email;
firstName = gr.first_name
  }
 
  var url = 'msteams:/l/chat/0/0?users=' + email + '&amp;amp;message=Hi ' + firstName + ', this is regarding ticket: ' + number + ' - ' + short_desc; 
  
var w = getTopWindow();
w.open(url);
 
 
}
 
 
</script>
 
</j:jelly>