cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Status = Closed workflow failing on Condition

Hi,

 

My workflow is failing with this error:

The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/Requester']' is of type 'Object'. The result must be a valid array.

@v-bacao-msft 
tagging you in this as you're familial with my other flows.

Close1.png

Close2.png

Close3.png

4 REPLIES 4
Highlighted
Super User III
Super User III

hi @sudosaurus  please change your condition to contains not equals.



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted
Community Support
Community Support

 

Hi @sudosaurus ,

 

From the error message, the problem is in Apply to each and not in Conditions.

Please try to set the two person fields of Requester and CC Requesters to allow multiple selections. Then reconfigure Flow.

If this method does not work, please share Flow run history with us for further analysis.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

@v-bacao-msft I have tried this however still not working.

 

See flow history below:

 

expression.png

Highlighted

 

Hi @sudosaurus ,

 

Please ensure that you have set the person field to allow multiple selections.

128.PNG

Then you could create a new flow, when you configure Send email action, do not add Apply to each first but directly add person email in the field. If the field allows multiple selections, Apply to each will be added automatically.

 

In addition, you can add a Compose in the previous step of Send email action to output the field value of Requester to view its output.

129.PNG

Please try again.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,130)