cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Teresa24486
Post Prodigy
Post Prodigy

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
Super User
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
Super User
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
Super User
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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,716)