Microsoft Teams (Graph) Spoke - How to create new channels and post P1 Incident information automatically?

ashwanikumar
Tera Expert

Hi All,

I am trying to create a new channel on teams and post incident details on that channel every-time a new P1 Incident is inserted. 

I am able to create new channel using Microsoft Teams Graph Spoke (From store). In response I get channel ID.

I am using Microsoft Teams Spoke to post incident information. I am able to post Incident information in General channel but not in newly created channel. Incoming Webhook can be created in teams channel manually but I am not sure how can I automatically generate webhook URL everytime a new channel is created.

Any Suggestions?

find_real_file.png

Thanks!

 

5 REPLIES 5

jatinder1981
Kilo Contributor

Hi Ashwani you would need to use REST Api to post the message in the teams channel. Keep in mind that only the Delegated account will be able to to post chat/message in the channel. Application authorization does not work.

 

or otherwise you need to look for other options like Microsoft flow to trigger the webhook creation outside of the tool.

saidarao kethin
Tera Contributor

Hello Ashwanikumar,

 

I have the same requirement  as you mentioned above. Could you provide me the steps  to connect MS teams to create channel when P1 is raised in snow.

 

 1.What are steps we need to follow after we install Microsoft Teams Graph spoke in servicenow. 

2. what are the details we require from "MS teams" support team  to create channel in a team.

 

sandeep p1
Mega Expert

Hi,

If you wanted to share INC's into a Teams channel, you can make use of Microsoft Teams spoke available through integrationHub. You cannot create Teams channel through this spoke but certainly can share Incident,Problem,Change details into a channel. You can Post messages too. It is a straight forward configuration explained in the below link:

Leveraging the MS Teams Spoke in Integration Hub

 

Thanks!

rafaelramos
ServiceNow Employee
ServiceNow Employee

Hi there!

 

I believe that you can you use the action ''Create Channel in a Team" presented on Microsoft Teams Graph spoke. Then, to get details you can use the action "Get Channel Metadata".

 

See the following link to more info about thisMicrosoft Teams Graph spoke presented on integration hub: https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/integrationhub-store-spokes/concept/msteams-spoke.html

 

Regards!