cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Create Teams Channel using Graph API

Hi,

Trying to use the Beta graph api - https://docs.microsoft.com/en-us/graph/api/channel-post?view=graph-rest-beta&tabs=http to create a private channel for a team I have setup as owner with me as channel owner.

Using the example I get bad gateway, failed to execute backend request error.

 

This is the example json and below is card screenshot.

Anybody any ideas?

 

Capture.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper III
Helper III

Re: Create Teams Channel using Graph API

Thanks for all your suggestions.

I found my error.

As this flow integrates with Dynamics I was mistakingly using the crm user id not the Active Directory user id.

View solution in original post

10 REPLIES 10
Highlighted
Responsive Resident
Responsive Resident

Re: Create Teams Channel using Graph API

There is a Create Channel Action available although it says preview... May be you can try that if you can see it in your tenant...

 

PrasadAthalye_0-1596465371969.png

 

Highlighted
Helper III
Helper III

Re: Create Teams Channel using Graph API

Sadly it doesn’t offer private mode. 

Highlighted
Community Support
Community Support

Re: Create Teams Channel using Graph API

 

Hi @MartinHutchcpa ,

 

Please refer to the following thread and see if it helps:

Solved: How to create a private channel in Microsoft Teams... - Power Platform Community

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper III
Helper III

Re: Create Teams Channel using Graph API

Thanks for all your suggestions.

I found my error.

As this flow integrates with Dynamics I was mistakingly using the crm user id not the Active Directory user id.

View solution in original post

Highlighted
Helper II
Helper II

Re: Create Teams Channel using Graph API

HI, Just a small question as i'm trying something similar

 

How did you managed to get the Authorization Token?

Highlighted
Helper III
Helper III

Re: Create Teams Channel using Graph API

I used a card

Capture.JPG

Highlighted
Helper II
Helper II

Re: Create Teams Channel using Graph API

Thanks For your reply

 

It did gave me the bearer token but unfortunately my next step is giving a 403 forbidden error

What I'm trying to achieve is create an online meeting as per below documentation :
https://docs.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=...

 

for that I have also got the requested admin consent for permission "OnlineMeetings.ReadWrite"

 

I'm still not sure as why its still not allowing me.

Highlighted
Helper III
Helper III

Re: Create Teams Channel using Graph API

Try using the graph explorer.

It will also show you what permissions you need.

https://developer.microsoft.com/en-us/graph/graph-explorer

Highlighted
Helper II
Helper II

Re: Create Teams Channel using Graph API

Thanks,

 

I can see that onlinemeetings.Readwrite is the permission that I needed from the graph explorer.

 

I've managed to get it but still somehow it is giving me 403- forbidden error

 

Is it any specific way that you are passing the token ? I am passing it as directly raw ey (Should I start it with bearer keyword in the beginning?)

 

Flowhttp.PNG

Highlighted
Helper III
Helper III

Re: Create Teams Channel using Graph API

Sorry for delay.

The value for the Authorization key is simply the "Access token" field from the "Get Token" parsed json response.

Capture.JPG

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (3,601)