Hi @Parth Jani
It is not yet supported to use the $filter
query parameter to filter the list
attribute, you can only traverse the site list set, and then execute the if
conditional statement to filter the result set:
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.Sites["{site id}"].Lists.GetAsync();
for (int i = 0; i < result.Value.Count; i++) {
if (result.Value[i].ListProp.Template == "genericList") {
Console.WriteLine(result.Value[i].Id);
}
}
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.