Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Status = Closed workflow failing on Condition

(1) ShareShare
ReportReport
Posted on by 1,597 Super User 2024 Season 1

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

  • v-bacao-msft Profile Picture
    on at
    Re: Status = Closed workflow failing on Condition

     

    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,

  • sudosaurus Profile Picture
    1,597 Super User 2024 Season 1 on at
    Re: Status = Closed workflow failing on Condition

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

     

    See flow history below:

     

    expression.png

  • v-bacao-msft Profile Picture
    on at
    Re: Status = Closed workflow failing on Condition

     

    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,

  • ChristianAbata Profile Picture
    8,947 Most Valuable Professional on at
    Re: Status = Closed workflow failing on Condition

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492