web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow to retrieve Micro...
Power Automate
Unanswered

Flow to retrieve Microsoft Teams weburl via GET request

(0) ShareShare
ReportReport
Posted on by 347

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!

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

    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:
    https://teams.microsoft.com/l/channel/19%3a231de7d6ff8fb6af35cda%40thread.skype/General?groupId=849ca1da-e091-4354-91d3-6aafe5&tenantId=9e51064f-f6a5-41a2-89a9-97806
    
    Link to team:
    https://teams.microsoft.com/l/team/19%3a231de7d6ff8fb6af35cda%40thread.skype/conversations?groupId=849ca1da-e091-4354-91d3-6aafe5&tenantId=9e51064f-f6a5-41a2-89a9-97806
    

     

    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.

    Compose:

    replace(items('Apply_to_each')['webUrl'],'channel','team')

    Set variable:

    replace(outputs('Compose'),items('Apply_to_each')['displayName'],'conversations')

    Image reference:

    46.PNG

     

    Best Regards,

  • hnguy71 Profile Picture
    347 on at

    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?

     

    weburl.PNG

  • MarkStokes Profile Picture
    561 on at
    Hi,

    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
  • hnguy71 Profile Picture
    347 on at

    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.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard