How to create Microsoft Teams private channels using Power Automate and the ‘Send a Microsoft Graph HTTP request’ action


Using the standard Power Automate actions for Microsoft Teams we can only create a standard channel, but by using Microsoft Graph with the new ‘Send a Microsoft Graph HTTP request’ action it’s possible to extend the standard actions similarly to my previous post, and create private channels in Microsoft Teams.

Microsoft Graph request format

To create a Microsoft Teams channel via Graph, you need to send a request body representing the channel object.

This object has a property named membershipType, which represents the type of the channel. This property can be set during creation only.

When creating a private channel as urgent, we need to set the membershipType of the channel as private.

Then we run a POST request against the team channels endpoint to create the channel.

Creating a private channel

To create a private channel we can run a POST request against the following graph endpoint:

<

pre…


Source link

More About This Author

michelcarlo
michelcarlo
SharePoint and Office 365 Consultant/Developer always trying to get the best from Microsoft stack (Microsoft 365/Azure/Power Platform and related stuff).

Living in Ireland since 2018, I had previously worked in Brazil as a consultant/developer for Office 365, SharePoint and related technologies for almost 10 years.

Author: michelcarlo

SharePoint and Office 365 Consultant/Developer always trying to get the best from Microsoft stack (Microsoft 365/Azure/Power Platform and related stuff). Living in Ireland since 2018, I had previously worked in Brazil as a consultant/developer for Office 365, SharePoint and related technologies for almost 10 years.

Share This Post On
Share via
Copy link
Powered by Social Snap