Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Error in flow

(0) ShareShare
ReportReport
Posted on by 15

Hi All

 

I am very new to PowerAutomate and am trying to figure my way through it all!

I am getting the following error on the 'apply to each' stage

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')?['ROWSET']?['ROW']' is of type 'Object'. The result must be a valid array.

 

 

pdyason_0-1661011403807.png

Any help would be greatfully received!

Thank you

Paula

 

  • MarconettiMarco Profile Picture
    MarconettiMarco 3,812 on at
    Re: Error in flow

    Hello @pdyason ,

    the "Apply to each" control needs to loop actions through an array of items and not from a single Object.

    For example, when you list rows present in a table, you can grab the entire list (array) and for each row, perform specific actions:

    MarconettiMarco_0-1661066898992.png

     

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

    My blog site about Power Automate: https://powerautomatejoy.com/

    BR,

    Marco

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard