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

Community site session details

Session Id : fekqC2O5BOmcyVKlThixw3
Power Apps - Building Power Apps
Unanswered

Capturing the ID for a newly created Teams Channel

Like (0) ShareShare
ReportReport
Posted on 20 Jul 2022 19:00:54 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,162 Super User 2025 Season 2 on 22 Jul 2022 at 06:36:50
    Re: Capturing the ID for a newly created Teams Channel

    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

  • ANB Profile Picture
    7,162 Super User 2025 Season 2 on 20 Jul 2022 at 20:25:34
    Re: Capturing the ID for a newly created Teams Channel

    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,162 Super User 2025 Season 2 on 20 Jul 2022 at 20:01:49
    Re: Capturing the ID for a newly created Teams Channel

    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

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473