Auto-generate a MS Teams Conference call from a Major Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
How can I Auto-generate a MS Teams Conference call from a Major Incident when its in the proposed state?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @SaifAli Master ,
You can take reference below steps.
Step 1: Create the Flow
- Navigate to Flow Designer and click New > Flow.
- Name your flow: MIM - Create Teams War Room
- Set Run As: System User.
Step 2: Configure the Trigger
- For the Trigger, select Record Updated.
- Table: Incident [incident]
- Filter Conditions:
[Major incident state] changes to Proposed
Step 3: Add Flow Actions
- Action 1: Get Current Date/Time The Teams API needs a start and end time. We'll create a meeting that starts now and ends in 2 hours.
- Click + to add an Action.
- Search for and select the Script action (under the "Core" tab).
- Rename it: Get Start and End Times
- Outputs: Create two outputs in the right-hand pane:
- start_time (Type: String)
- end_time (Type: String)
- Script:
(function(inputs, outputs) {
var gdt_start = new GlideDateTime();
outputs.start_time = gdt_start.getInternalFormatted();
var gdt_end = new GlideDateTime();
gdt_end.addSeconds(7200); // 7200 seconds = 2 hours
outputs.end_time = gdt_end.getInternalFormatted();
})(inputs, outputs);Action 2: Create the MS Teams Online Meeting This is the main action.
- Click + to add an Action.
- Search for the Microsoft Teams spoke and select Create Online Meeting.
- Fill in the fields using the Data Pills:
- Meeting Title: Drag the Trigger - Record Updated data pill and select Incident Record -> Number. Then type: - MIM War Room: and add the Incident Record -> Short description pill.
- Result looks like: INC0012345 - MIM War Room: Mainframe is offline
- Start Time: Drag the start_time pill from your (1) Get Start and End Times action.
- End Time: Drag the end_time pill from your (1) Get Start and End Times action.
Action 3: Update the Incident with the Meeting Link This is the final step to close the loop.
- Click + to add an Action.
- Select the Update Record action (under "Core").
- Record: Drag the Incident Record pill from the Trigger.
- Fields:
Conference bridge: Drag the Join URL data pill from your (2) Create Online Meeting action.
Work notes: Type Automated MS Teams war room bridge created: and then drag the Join URL pill from the (2) Create Online Meeting action.
Step 4: Save and Activate
- Click Save, then Activate your flow.
Regards,
Vishal
