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 Apps / Capturing the ID for a...
Power Apps
Unanswered

Capturing the ID for a newly created Teams Channel

(0) ShareShare
ReportReport
Posted on by 3

I have a power app that creates new Teams Channels and records the information onto a sharepoint list. 

How do I capture the ID for the newly created Teams Channel and include that as a data point on my sharepoint list of channels?

Categories:
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @jbacacia ,

    Hope you are doing well!

    1. To get the Teams ID for newly created teams, you can write Power Automate.
    2. This Power Automate will trigger from same button where new Teams creation logic is available.
    3. The Power Automate will trigger after the Team creation is done.
    4. You need to Pass the Name of newly created Teams in Text to Power Automate. PFB screenshot:

    ANB_6-1658347015654.png

     

    ANB_2-1658346485448.png

    ANB_3-1658346521535.png

    ANB_2-1658347920115.png

     

     

    ANB_3-1658347959017.png

     

    Below is the code to run the Power Automate from PowerApps button which will give you an ID of teams and store in variable.

    ANB_9-1658347225789.png

    ANB_10-1658347255950.png

     

    Once you get the ID, then you can use and store in SharePoint.

     

     

    I hope this helps.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs.

    Thanks,

    ANB

     

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @jbacacia ,

    There is another way too without Flow. Make sure you add Microsoft Teams connector to PowerApps. Then use below code.

    ClearCollect(col,MicrosoftTeams.GetAllTeams().value); 

    Above collection will give you list of all Teams.

    Then LookUp above collection with the newly created Teams name which will give you the ID.

    LookUp(
    col,
    displayName = "XYZ"
    ).id

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs.

    Thanks,

    ANB

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @jbacacia ,

     

    Does the above solutions helped you?

     

    If yes, then please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs.

     

    Thanks,

    ANB

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 Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard