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 / How do I get the Share...
Power Automate
Answered

How do I get the SharePoint site url to Teams connected site

(0) ShareShare
ReportReport
Posted on by 216
I have a flow where I create a new team in Teams. After this, I need to get the site url for the SharePoint site that is connected to the team. 
 
How do I get that? The most obvius choice is the "Send an HTTP request to SharePoint", but I haven't figured out the uri...
 
Anyone out there who knows?
 
PS!I had to put a category on here, but for some reason I had to choose between "Flow Mobile App", "Licencing" and "Business Process Flows"....
Categories:
I have the same question (1)
  • Verified answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
     
    There is an action in the Teams connector that lets you send an MS Graph call.  The one you want is
     
     
    using the TeamID that you got when you created the new Team
     

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • TonjeWaasjo Profile Picture
    216 on at
  • Verified answer
    David_MA Profile Picture
    12,970 Super User 2025 Season 2 on at
    If the URL you show in your message below is the one that you used in the Graph API call, it is because you did not specify the value for <myTeamid>. When there are values enclosed in <> Graph API expressions, it means you need to replace it with a value. In this case the unique GUID of the group associated with the team and SharePoint site.
     
    The ID will be returned from the Create a Team action, which you can use in the Graph API call.

  • TonjeWaasjo Profile Picture
    216 on at
    Thank you for your answer David, 
     
    I just switched my TeamID hvis the tag, so when I ran the flow, I had my id in there. 
     
    The reason why I need the SharePoint url is because I am going to add a sitescript, som folders and files and so on to the SharePoint site inside this flow. 
  • David_MA Profile Picture
    12,970 Super User 2025 Season 2 on at
    @TonjeWaasjo I modified my prior post to show you how to achieve what you need to do.
  • TonjeWaasjo Profile Picture
    216 on at
    Thanks,
     
    First this did not work, but when I put in a 2 min delay after the team creation it worked =)
  • David_MA Profile Picture
    12,970 Super User 2025 Season 2 on at
    The delay makes sense. It probably takes some time for the group to actually be created, and the ID generated. If my reply and the original one from @Pstork1 below answered your question, please mark them as the answer to close out this question.
  • TonjeWaasjo Profile Picture
    216 on at
    I am trying to, but it will not stick. They are just removed when I refresh...
     
  • David_MA Profile Picture
    12,970 Super User 2025 Season 2 on at
    @TonjeWaasjo thank you for letting me know the solution worked. As a super user I can mark the ones that helped you as the answers. Glad it worked for you!

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard