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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,445)