Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS Graph Api Colorize Range in Excel - fill missing #2764

Open
martinlammers opened this issue Dec 1, 2024 · 0 comments
Open

MS Graph Api Colorize Range in Excel - fill missing #2764

martinlammers opened this issue Dec 1, 2024 · 0 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:feature New experience request

Comments

@martinlammers
Copy link

martinlammers commented Dec 1, 2024

I am trying to colorize a row in an Excel Sheet.

My C# Code looks like that:

var formatRequestBody = new WorkbookRangeFormat
{
    Fill = new WorkbookRangeFill
    {
        Color = "#FFF00"
    }
};
await graphClient.Drives[driveId]
    .Items[FileId]
    .Workbook
    .Worksheets["table1"]
    .RangeWithAddress($"A{row.Index + 1}:H{row.Index + 1}")
    .Format
    .PatchAsync(formatRequestBody);

I get the error: The argument is invalid or missing or has an incorrect format.

Based on the endpoint, the code should be like ...Format.Fill.PatchAsync(body)

But the Fill request builder is missing in the SDK.

...
.Format
.Fill
.PatchAsync(formatRequestBody);
@martinlammers martinlammers added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:feature New experience request labels Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:feature New experience request
Projects
None yet
Development

No branches or pull requests

1 participant