cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Teresa24486
Super User
Super User

Filter Array : The 'from' property value in the 'query' action inputs is of type 'Null'. The value must be an array.

Hi,

Error on the flow: The 'from' property value in the 'query' action inputs is of type 'Null'. The value must be an array. I am using a filter array.

Teresa24486_0-1647502440053.png

 

Teresa24486_1-1647502976412.png

 

 

 

 

6 REPLIES 6
Expiscornovus
Dual Super User
Dual Super User

Hi @Teresa24486,

 

The result you are getting back is not an array. You only get a single result. That is why a Filter Array action would not be needed.

 

Edit: I did not read the error message properly. Need some coffee 😄

 

Hi @Expiscornovus ,

Absolutely. This is what I am using: 

https://graph.microsoft.com/v1.0/sites/yourdomain.sharepoint.com:/sites/Template1

 

Expiscornovus
Dual Super User
Dual Super User

Hi @Teresa24486,

 

Thanks for checking and apologies for the confusion. I edited my earlier reply. I misread something, my bad 😁

 

Like mentioned, the current Graph API request you are using only lists a single site. That is why the filter array does not like the output you are using in there.

 

For my understanding, can you explain what you are trying to achieve? Are you for example trying to list all lists and libraries and find the one which is called Documents?

Hi @Expiscornovus ,

By using the filter array, I am trying to filter a specific library from all the lists/libraries of the Site collection. How else can I achieve this?

Expiscornovus
Dual Super User
Dual Super User

Hi @Teresa24486,

 

If you want to retrieve a specific library you can also use the Get List method 

https://graph.microsoft.com/v1.0/sites/{site-id}/lists/Documents/

 

When you want to retrieve all of them, you can use the Get Lists method

https://graph.microsoft.com/v1.0/sites/{site-id}/lists

 

Both use the {site-id} instead of the {hostname}:/{server-relative-path} in the URI btw.

 

 

Hi @Expiscornovus,

How can I fix this error?

 on the filter array control, the from is 

body('Send_an_HTTP_request')?['value']
item()?['value'] is equal to Documents
 
SP Doc ID filter is :
first(body('Filter_array'))?['id']

 

Teresa24486_1-1647670372471.png

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,361)