I am using .net Graph SDK (Microsoft.Graph) version 3.21. I am following the below documentation link from Microsoft: https://learn.microsoft.com/en-us/graph/api/range-clear?view=graph-rest-1.0&tabs=csharp In this link, it is said that we can clear a range of cells and C# code to do so is given. When I try, I am getting error for the Clear I am able to get Range, but the clear shows error. Error CS1061 'IWorkbookWorksheetRangeRequestBuilder' does not contain a definition for 'Clear' and no accessible extension method 'Clear' accepting a first argument of type 'IWorkbookWorksheetRangeRequestBuilder' could be found (are you missing a using directive or an assembly reference?)
Am I missing something? What else am I supposed to do?
Note: All other Graph calls work. I am able to retrieve Range: var range = await _graphServiceClient.Sites["root"].Drives[file.ParentReference.DriveId] .Items[file.Id].Workbook.Worksheets["Sheet1"].Range().Request().GetAsync();