cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NigelP
Kudo Kingpin
Kudo Kingpin

IS it Possible to have a PowerAutomate Flow to Check to see if a Microsoft Teams Team exists ?

Hi

 

I trying to find a way of checking to see if a Microsoft PowerAutomate Flow exists which checks to see if a Microsoft Teams Team exists.  Either using the Microsoft Graph or another way.

 

I can see how to do this via SharePoint, by looking for the underlying SharePoint Site, but I cannot find anything which just uses Teams.

 

Thanks

Nigel

1 ACCEPTED SOLUTION

Accepted Solutions
jinivthakkar
Super User
Super User

@NigelP I was able to achieve this after reading this blog : 

 

http://jopx.blogspot.com/2020/08/quick-tip-how-to-check-if-microsoft.html

 

here is my flow:

jinivthakkar_0-1615800864341.png

the output of compose action is True if the team exists else False.

 

I have a team called Suzuki so the output is True and incase of Suzuki1 the output is False

 

 

jinivthakkar_3-1615801056939.png

 

 

jinivthakkar_1-1615800994507.png

 

jinivthakkar_4-1615801083608.png

 

/*checks if team name exists in output */

contains(string(outputs('List_teams')?['body']),variables('varTeamName')) 

 

hope this helps.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
jinivthakkar
Super User
Super User

@NigelP I was able to achieve this after reading this blog : 

 

http://jopx.blogspot.com/2020/08/quick-tip-how-to-check-if-microsoft.html

 

here is my flow:

jinivthakkar_0-1615800864341.png

the output of compose action is True if the team exists else False.

 

I have a team called Suzuki so the output is True and incase of Suzuki1 the output is False

 

 

jinivthakkar_3-1615801056939.png

 

 

jinivthakkar_1-1615800994507.png

 

jinivthakkar_4-1615801083608.png

 

/*checks if team name exists in output */

contains(string(outputs('List_teams')?['body']),variables('varTeamName')) 

 

hope this helps.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,690)