cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ruben12345
Regular Visitor

Creating a flow that posts all created teams channels in one message in a chat.

Hi,

 

I'm trying to create a flow that posts a message with all teams channel within my organization. the problem I run into is that a message is now posted per channel. How can I put this in one post?

 

In the flow below I tried to place all existing teams channels in 1 message. This way you get all the data back from a channel, but I only want the displayname.

 

ruben12345_1-1646227160770.png

 

I tried to modify the json output by using Parse and Compose. But then the flow creates an apply to each, so that multiple messages are still created. (See flow below)

 

ruben12345_0-1646226585781.png

 

How can modify this flow so that the flow will post one list of all the displaynames of the channels in a Teams chat?

 

Looking forward to hearing from you. 

 

Regards,

 

Ruben 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mattias1172
Responsive Resident
Responsive Resident

Use a variable to store the names of the channels from the "Apply To Each" loop. Then, use that variable in the post message action. 

 

You can add formatting to the "Append to string variable" action if you want them separated by newline, space, comma, etc. 

mattias1172_0-1646228747035.png

 

mattias1172_1-1646228953367.png

 

View solution in original post

1 REPLY 1
mattias1172
Responsive Resident
Responsive Resident

Use a variable to store the names of the channels from the "Apply To Each" loop. Then, use that variable in the post message action. 

 

You can add formatting to the "Append to string variable" action if you want them separated by newline, space, comma, etc. 

mattias1172_0-1646228747035.png

 

mattias1172_1-1646228953367.png

 

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,988)