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

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
Solution Specialist
Solution Specialist

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
Highlighted

Sadly it doesn’t offer private mode. 

Highlighted

 

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

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

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

 

How did you managed to get the Authorization Token?

Highlighted

I used a card

Capture.JPG

Highlighted

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

Try using the graph explorer.

It will also show you what permissions you need.

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

Highlighted

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,281)