Skip to content

Add an Excel template generated from Microsoft Graph's OpenAPI description - #339

Merged
tnkuehne merged 2 commits into
mainfrom
feat/excel-template
Nov 23, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
feat/excel-template

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Change

An Excel template.

  • 44 typed methods for workbooks in OneDrive for Business and SharePoint: finding workbooks, sessions, worksheets, ranges, tables with their rows and columns, named ranges, charts and calculation.
  • It uses the Microsoft account connection and the Files.ReadWrite.All scope of the OneDrive template, so it needs no new permission.
  • Adding is a create change. Updating and calculate are update changes. Clearing and deleting are delete changes. Sessions only read.
  • template.md covers the .xlsx requirement, session lifetimes and unbounded ranges.

Generator rules for Graph's workbook API.

  • headers: an operation can take inputs that the runtime sends as headers the description does not declare. Workbook methods take an optional sessionId, sent as workbook-session-id.
  • undescribed: an operation Graph serves but its description leaves out, sent with another HTTP method to the path of a described operation. updateRange writes a range with a PATCH to the address getRange reads. The generator stops once Graph describes the operation itself.
  • The OneDrive and Outlook templates are regenerated with the shared REST runtime, which now sends header inputs.

Tests

  • Template tests: connection, reads, a write with approval, sessions and type checks.
  • Generator tests for both rules.
  • Excel is included in the managed OAuth tests.
  • Ran pnpm check, the generator tests, and the Excel, OneDrive and Outlook template tests.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; both previous findings are fixed and no new blocking issue was found.

Summary

Adds an Excel template with 44 typed Microsoft Graph methods, account connections, approvals, and workbook sessions.

  • Excel callers can use typed methods to work with Microsoft Graph workbooks.
  • Each Excel caller can connect their own Microsoft account.
  • Excel changes can ask users for approval before they run.
  • Generated Graph methods can include extra headers and operations missing from the API description.

Reviews (2) · Last reviewed commit: "Keep header inputs on later pages and re..." · Reviewed by Greptile

…ption

The template offers 44 typed methods for workbooks in OneDrive for Business
and SharePoint: finding workbooks, sessions, worksheets, ranges, tables and
their rows and columns, named ranges, charts and calculation. It uses the
Microsoft account connection and Files.ReadWrite.All scope of the OneDrive
template, and the official Excel icon.

The OpenAPI generator gains two rules that Graph's workbook API needs:

- headers: operations can take inputs the runtime sends as headers the
  description does not declare. Workbook methods take an optional sessionId,
  sent as workbook-session-id.
- undescribed: operations Graph serves but its description leaves out, sent
  with another HTTP method to the path of a described operation. updateRange
  writes a range with a PATCH to the address getRange reads. The generator
  stops once Graph describes the operation itself.

The OneDrive and Outlook templates are regenerated with the shared REST
runtime, which now sends header inputs.
@tnkuehne
tnkuehne added this pull request to stack #341 November 23, 2026 14:17
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs d24ac7c Nov 23 2026, 02:34 PM

…rations

A later page's input now carries the header inputs of the first, so a
sessionId stays typed when a caller follows nextLink. Two undescribed rules
that name the same HTTP method and operation stop generation instead of one
replacing the other.
@tnkuehne
tnkuehne merged commit e6167b3 into main Nov 23, 2026
16 checks passed
@tnkuehne
tnkuehne deleted the feat/excel-template branch November 23, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant