cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SuzanneHunt
Level: Powered On

Using FLOW http call to create a Team

Hi all,

I've got a Flow that calls the Microsoft Graph API to create a unified group which works fine. Now I'd like to update it with an option to create a Team for that group. I'm trying to use the Beta API which gives me a successful response when I use it in the graph explorer, however when I try to add the HTTP call in my Flow I get a 405 error (specified HTTP method not allowed for the requested target)

There is a "Delay Until" action after the call to create the group which is set for 5 minutes to allow time for things to process before calling the Create Team option. 

I've tried using PUT/POST/PATCH, the URI being called is https://graph.microsoft.com/beta/groups/{varGroupID}/team, varGroupID is a variable containing the ID of the Group created earlier in the flow and the body contains:

{

  "memberSettings": {

       "allowCreateUpdateChannels": true

    },

  "messagingSettings": {

        "allowUserEditMessages": true,

        "allowUserDeleteMessages": true

     },

  "funSettings": {

         "allowGiphy": true,

         "giphyContentRating": "strict"

     }

}

 

 

Help please!

 

Suzanne

3 REPLIES 3
Community Support Team
Community Support Team

Re: Using FLOW http call to create a Team

Hi @SuzanneHunt,

 

Could you please share a full screenshot of the configuration of your flow?

Could you please show more details about the error message?

Is GroupID a body which created earlier in the flow?

405 Error indicates that the HTTP verb is not allowed for the specific URI that an HTTP client has requested.

Have you tried all the methods yet?

More details about troubleshooting HTTP 405 errors, please check the following article:

https://docs.microsoft.com/en-us/aspnet/web-api/overview/testing-and-debugging/troubleshooting-http-...

Please provide more details and we would provide a proper workaround for you.

 

Best Regards,

Barry

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.
SuzanneHunt
Level: Powered On

Re: Using FLOW http call to create a Team

Hi Barry,

Thanks for your response. This is the first part of the flow that creates the group and works successfully:

Flow-Success.PNG

This is the next section, there is a pause for 10 mins to allow the group to be created and "bedded in" before I try to create a team from it:

FlowDetails1.png

And the details of the HTTP call (which is the bit that fails) are:

FlowDetails.png

I've tried PUT, POST and PATCH and they all give the same error which is:

error1.pngerror2.png

 

If I take a GroupID that has been already created and log in to the Graph Explorer and run the PUT request there with the groupid it successfully creates the associated Team

 

Hope this has the details you are after?

 

Suzanne

 

 

Berny
Level 8

Re: Using FLOW http call to create a Team

here is a bog plost that was recently posted that describes how to create a team through MS Flow. 

 

https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/How-to-provision-team-with-Flow/bc...

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 278 members 1,826 guests
Please welcome our newest community members: