cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PeKi72
Helper III
Helper III

How to send a team message to multiple users

Hi,

How can i send a team message to multiple users:

PeKi72_0-1653399354219.png

I get an error:

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('UserList')' is of type 'String'. The result must be a valid array.

 

Gr, p

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @PeKi72,

 

I see you are using a compose action. Can you try an initialize variable of type array instead?

 

Try a setup like below.

 

arrayvariable_instead.png

View solution in original post

2 REPLIES 2
Expiscornovus
Dual Super User
Dual Super User

Hi @PeKi72,

 

I see you are using a compose action. Can you try an initialize variable of type array instead?

 

Try a setup like below.

 

arrayvariable_instead.png

PeKi72
Helper III
Helper III

It works 🙂

 

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,587)