3
votes

I'm trying to filter on the sharepoint lists, but the semantics seems to be different to the default semantics.

What I already tried was (with $ and without; single quotes and no quotes):

https://graph.microsoft.com/v1.0/sites/root/lists?filter=name eq 'Something'
https://graph.microsoft.com/v1.0/sites/root/lists?$filter=name eq 'Something'
https://graph.microsoft.com/v1.0/sites/root/lists?filter=id eq 'CFFF1460-B4D7-419C-A921-61B5279BBDDC'
https://graph.microsoft.com/v1.0/sites/root/lists?$filter=id eq 'CFFF1460-B4D7-419C-A921-61B5279BBDDC'
https://graph.microsoft.com/v1.0/sites/root/lists?filter=id eq CFFF1460-B4D7-419C-A921-61B5279BBDDC
https://graph.microsoft.com/v1.0/sites/root/lists?$filter=id eq CFFF1460-B4D7-419C-A921-61B5279BBDDC

But everything returns an array containing all lists and not only the subset matching the desired criteria.

So how can I filter on sharepoint lists?

1
I'm afraid the list collection cannot be filtered or searched. - Marc LaFleur

1 Answers

0
votes

If you know the id of the list you want to filter and get a response for.

YOu can run a graph API query like this.

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

This will give you data about that list.

Let me know if you need further details on this.