Showing results for 
Search instead for 
Did you mean: 
Level 8

Flow to retrieve Microsoft Teams weburl via GET request

Hi all.


Does anyone know how to retrieve the weburl using flow? When I send a request via Graph Explorer I am able to return the weburl but when I try it in Flow I'm receiving an authentication error.


The idea is simple. I have the group ID of a MS Teams. When a user creates an item with attachments from a SharePoint list, the flow should find the Team URL and save it to the respective team's shared documents. 


Any help getting the first part would be greatly appreciated!

Community Support Team
Community Support Team

Re: Flow to retrieve Microsoft Teams weburl via GET request

Hi @hnguy71 ,


Could you share the method you are currently using?

If it is an authentication error, make sure the username and password are configured correctly.


I did a test on my side and it seems that we can get the link to team through List channels action.

I noticed that the channel web url is very similar to the link to team, so just replace some of the elements in channel web url to get the link to team.

channel web url:

Link to team:


You could get the link to team by the following method.

  • First get all the channels in the specified team through List channels action, and then initialize a variable to store link to team.
  • Traversing all the channels, here you only need to traverse the first element, but it does not affect the subsequent operations.
  • Replacechannel in the channel's web url with team.
  • In Set variable action, replace channel display name in the result obtained in the previous step with conversations.
  • The result of the last variable is link to team.



Set variable:


Image reference:



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.
Level 8

Re: Flow to retrieve Microsoft Teams weburl via GET request

Hi @v-bacao-msft 


Thank you for the detailed information on getting the channel web url and I'm sure this would be useful for someone down the line but I'm actually trying to get the SharePoint WebUrl. Is the method similar?



Super User
Super User

Re: Flow to retrieve Microsoft Teams weburl via GET request


I’m a little confused. Your original question states that you want to get the Teams WebURL and the solution provided gives you that.

Are you now saying that given a Team ID you want to find the associated SharePoint Web URL?

- Mark
Level 8

Re: Flow to retrieve Microsoft Teams weburl via GET request

Hi @MarkStokes 


I think there's a miscommunication.  I really did want the Team's WebUrl as how I described.  I've explored the option provided step-by-step and what I'm supposedly returning is the Team's Web APP Url in which I did not need. Or if the solution was correct and I'm supposed to have returned the example weburl in my other post then I will explore it further.


Helpful resources


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.


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.


Flow Community User Group Member Badge

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


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 173 members 3,548 guests
Please welcome our newest community members: