I try to get SharePoint library by name using Micrsoft Graph.
Following query return names of two libraries (drives, to be more precise): https://graph.microsoft.com/v1.0/sites/SiteID/drives?$select=name,id
Result:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives(name,id)",
"value": [
{
"id": "b!AzzEy..............MAZI5",
"name": "Dokumenty"
},
{
"id": "b!AzzEy.............B-G2yh",
"name": "serwis"
}
]
}
To return only one by name, I do such $filter
https://graph.microsoft.com/v1.0/sites/SiteID/drives?$select=name,id&$filter=name eq 'serwis'
but it doesn't work - it return all drives.
Where is problem in URL?