cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MartinHutchcpa
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
MartinHutchcpa
Helper III
Helper III

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
PrasadAthalye
Super User
Super User

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

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Sadly it doesn’t offer private mode. 

 

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.
MartinHutchcpa
Helper III
Helper III

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

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

 

How did you managed to get the Authorization Token?

I used a card

Capture.JPG

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.

Try using the graph explorer.

It will also show you what permissions you need.

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

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

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
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (45,717)