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 / Creating Teams Channel...
Power Automate
Unanswered

Creating Teams Channels and messages.

(0) ShareShare
ReportReport
Posted on by 467

The scenario.

 

I have 10 teams, no more no less.  All teams are pre-created.  We have a powerapp that we have set global variables to various items such as group name, team identity, team guid, team name, etc. 

 

The powerapp allows us to create channels, send adaptive cards (messages) to various channels, etc.  The powerapp references your department and uses a condition within flow to be able to determine which team/channels to send to using the variables within teams.  Long story short, it the flow uses the variables within teams to determine which team and channel to communicate to.

 

My question,

 

Is this best practice?  My flow is quite simply, goes straight from powerapps to a condition that verifies your department, and finally based upon this value it will select the appropriate team/channels which come from the powerapps variables.  For all this to work we obviously are hardcoding or managing the teams guids within powerapp variables.  While this seems to work fine I question how would one do this if you have many teams versus only 10.  This does not seem like a very good way to manage as more teams are onboarded.  So, basically, I am looking for a more elegant way to design this where we are not hardcoding team guids upstream, etc.  I was thinking possibly this can be done using the list teams and list channels actions?  Any direction or examples on this is much appreciated.

The CreateChannel (Ask in Powerapps) seen below are referencing the teams guid variables mentioned above.

teams.jpg

Categories:
  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Dudditz,

     

    You can create a SharePoint list to store Group name, Team identity, Team guid, Team name, etc.Annotation 2019-09-11 105031.png

    Then use the create Get items to find the team GUID whether exist in the list

    -If exists, the length of the return value will not equal to 0;

    -If not exists, the length of the return value will equal 0.

    Then, you can according to the result to decide how to send the message to team channel.

    In this way, if there is a new team to join, it is more convenient to manage and add, delete, modified, and check.

    Annotation 2019-09-11 105020.png

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

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
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard