Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 08:55 AM
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
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 09:01 AM
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 08:59 AM
Hi @mahi6 ,
Please refer to below threads:
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 09:01 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2024 03:53 AM
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;message=Hi ' + firstName + ', this is regarding ticket: ' + number + ' - ' + short_desc;
var w = getTopWindow();
w.open(url);
}
</script>
</j:jelly>