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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,044)