web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / power automate approva...
Power Automate
Answered

power automate approval flow error:The result must be a valid array.

(0) ShareShare
ReportReport
Posted on by 6

Hi everyone,

Could you please help to fix this:I created a flow included a switch that has 4 approvers(supervisor) but it just needs 1 approved then can flow to next approval flow(manager approval). I set apply to each for outcome of 4 approvers, when I test the error happened.

I am confused about this step, could you please help to explain how to fix this? Thanks a lot!

monicas_0-1643264313673.png

monicas_0-1643265203319.png

 

 

Categories:
  • Verified answer
    Mister_Shaik Profile Picture
    1,008 on at

    Hi @monicas ,

     

    The input to an applyToEach loop should always be a valid array. You can change the array input to an array by adding a "[" at start and "]" at end, then separate each response with a comma.

    1. array.PNG

     

    And to use the result using the CurrentItem result.

    2. current item.png

     

    Hope this helps 🙂

     

    Kind Regards,

    Shaik Sha
    ________________________________________________________________________

    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • monicas Profile Picture
    6 on at

    Hi Shaik!

    Thanks for your help! Now I learnt about the array from you, but what is the compose mean? The switch flow should flow to compose after apply to each? Thanks!

  • Mister_Shaik Profile Picture
    1,008 on at

    Hi @monicas ,

     

    In my own words, compose action is a kind of temporary variable, you can ignore it.

     

    You can directly use the "Current Item" - which is nothing but the current item in loop - in whatever action you want.

     

    Kind Regards,

    Shaik Sha
    ________________________________________________________________________

    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard