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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP Request to get sp...
Power Automate
Answered

HTTP Request to get specific team and ID

(0) ShareShare
ReportReport
Posted on by 196

Hi,

 

Is there a way to get a specific Team and ID based on the team name without having to use the Get Teams function, my issue is that we have nearly 400 teams for each of clients, and i need to create a specific channel under a specific client i will know the name as it will never change, so i don't want to have to do a get teams request for it as it adds about 5-8mins to the flow. Is this possible?

Categories:
  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @mousman85,

     

    Another way would be using the lists groups method from the Graph and applying a filter to either the displayName or mailnickname columns in that http request. If you want a Team I would also use resourceProvisioningOptions filter:

    https://docs.microsoft.com/en-us/graph/teams-list-all-teams#get-a-list-of-groups-using-beta-apis

     

    So it would be something like this:

    https://graph.microsoft.com/beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team') and mailNickname eq 'TeamName'

     

    You can use this request url in a HTTP action. The response should be able to provide you the id which you can use for the channel creation.

     

    Bear in mind that HTTP actions is a premium action. So I don't know if you are allowed to use that in your environment?

     

    Hope this helps.

     

  • mousman85 Profile Picture
    196 on at

    Thanks for the reply. I do have access to the HTTP premium connector as i needed it for another project.

     

    I am having some issues as i'm not 100% sure how to configure this request , do i need to set up an app in AAD (which i'm having issues with if so) or is it possible to do this without having an AAD app and using normal login credentials to access it? 

     

    This does sounds like exactly what i need though! so thanks for the the reply!

  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard