Microsoft Teams : Integrating with Service Now – Part 2 – Creating Service Now incident from Power Automate
LIFE IS BEAUTIFUL 🙂 I hope we all are safe 🙂 STAY SAFE, STAY HEALTHY, STAY HOME 🙂
Use Case / Background: We are automating the process of creation of ServiceNow incident from Teams channel.
In last article – Microsoft Teams : Integrating with Service Now – Part 1 – Connecting to Service Now from Power Automate – we discussed how create ServiceNow connection from Power Automate.
In this article we will discuss Power Automate action to create incident in ServiceNow. In this article we will simple discuss how the very basic incident is created when any message is posted in Teams channel and in next upcoming articles we will go in depth.
Details / Steps :
- Select the trigger for PowerAutomate. Since we need to create the ServiceNow incident when message is posted in Teams Channel, we will select the trigger – “When a new channel message is added ” as in below Fig 1
- Once we selected the respective trigger for Power Automate, we will select the respective Team and channel as in below Fig 2 and 3
- Our next step will be adding ServiceNow “Create record” action to create the ServiceNow incident as in below Fig
- This ServiceNow “Create Record” action has lots of properties, in today’s article we will set few properties (required one) and test the Power Automate as in below Figures 5 and 6 :
- Make sure option for “Record Type” is selected as “Incident“
- Set the other properties. We can use the values from Teams message as shown in below fig
- Here, I added admin account of ServiceNow as Caller and message body to Work notes properties as shown in below Fig
- Once we are done setting ServiceNow incident property values we are ready to test the PowerAutomate .
- I have one more Teams action “Post a message as the Flow bot to a user” but we will discuss this action in next article
Testing the PowerAutomate :
- Lets test our PowerAutomate. Here we will test manually as shown in below Fig
- Once we clicked on “Test” button at the bottom in Test pane, PowerAutomating for the action – to post/add message in respective Team and Channel as shown in below Fig
- Our next step will be posting message in Team channel as shown in below Fig. Here we are posting message in Team – “Demo_Team_EmailTemplates” and in “General” channel which is selected while adding PowerAutomate action as shown in below Fig
- Once, message posted in Teams successfully, if there are no issues PowerAutomate get executed successfully as shown in below Fig
- We are ready to go to ServiceNow and verify whether incident is created successfully or not
- As shown in below Fig 12 and 13, our ServiceNow ticket is created successfully 🙂
We will stop here, in next article we will discuss in more depth about the few ServieNow incident properties and how to return the incident number back to the assignee – user to whom ticket is assigned.
Thanks for reading 🙂 Feel free to discuss / comments / questions 🙂 SHARING IS CARING 🙂Share In Teams:
Enjoy the beautiful life 🙂 Have a FUN 🙂 HAVE A SAFE LIFE 🙂 TAKE CARE 🙂