Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Use Output from Filter Array

(0) ShareShare
ReportReport
Posted on by 11

I'm trying to create a flow that generates a report based on a filtered SharePoint list. I was able to do this on another flow, but I can't seem to use the data from my Filter Array to create the new report. After some googling, I saw that I have to use the Parse JSON command, but I'm getting the following error: "Invalid type. Expected Object by got Array."

 

I've seen some solutions for using 1-2 variables from a Filter Array, but I want access to all of them. What do I need to do to be able to use the output from the Filter Array command? 

 

Here's the overview of my flow:

kguidry_0-1670858736000.png

Here's the error:

kguidry_1-1670858786262.png

 

  • Verified answer
    kguidry Profile Picture
    11 on at
    Re: Use Output from Filter Array

    I abandoned using the Filter Array and instead was able to filter using the "Get Items" action. 

    kguidry_0-1672750103914.png

     

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Use Output from Filter Array

    @kguidry Assuming Filter by Status is a Filter array - the output of that should be an array of items.

     

    Run your flow then copy the entire output from your Filter by Status. Then go back into Edit mode and within your Parse JSON, click on Generate from sample and paste in the output you just copied. This should generate a schema based on your Filter array.

  • kguidry Profile Picture
    11 on at
    Re: Use Output from Filter Array

    I still receive the same error "Invalid type. Expected Object but got Array."

     

  • Sundeep_Malik Profile Picture
    6,480 on at
    Re: Use Output from Filter Array

    Hey @kguidry 

     

    Copy the entire data your getting in input of above parse json in the run history.

    Then edit your flow. Paste the data in generate from sample of parse json. Now I dont think you will get the same error.

     

    Sundeep_Malik_0-1670863766389.png

     

    Sundeep_Malik_1-1670863846434.png

     

    Sundeep_Malik_2-1670863886139.png

     

    I hope this will help. 🙂

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow