cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User II
Super User II

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
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.

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

 

See flow history below:

 

expression.png

 

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (3,960)