[{"data":1,"prerenderedAt":105},["ShallowReactive",2],{"topic:excel-online":3},[4,12,19,24,30,35,41,47,52,59,67,72,77,83,88,94,99],{"path":5,"title":6,"description":7,"type":8,"topics":9,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph","Automating Excel Online with Microsoft Graph","Work with workbooks that live in SharePoint and OneDrive from Python: the right token for each call, reading files into pandas, editing ranges and tables in place, and recalculating models with sessions.","guide",[10],"excel-online",null,{"path":13,"title":14,"description":15,"type":16,"topics":17,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fadd-a-chart-to-an-excel-online-workbook-with-microsoft-graph","Add a Chart to an Excel Online Workbook with Microsoft Graph","Create and maintain native charts in a workbook stored in OneDrive or SharePoint without downloading it: call the Graph charts\u002Fadd endpoint with a type and source range, set the title and position, point an existing chart at new data with setData, fetch a PNG of the chart for an email, and run it all inside a workbook session — with the request code tested against a mocked Graph endpoint.","how-to",[10,18],"charts-and-images",{"path":20,"title":21,"description":22,"type":16,"topics":23,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fadd-rename-and-delete-worksheets-with-microsoft-graph","Add, Rename and Delete Worksheets with Microsoft Graph","Manage the sheets of an Excel workbook in OneDrive or SharePoint from Python with Microsoft Graph: list worksheets, add a sheet, rename and reorder it, hide old ones and delete those past their retention — all inside a workbook session — with sheet names validated before the request, and a monthly rotation job tested against a mocked API.",[10],{"path":25,"title":26,"description":27,"type":16,"topics":28,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fappend-rows-to-an-excel-online-table-with-microsoft-graph","Append Rows to an Excel Online Table with Microsoft Graph","Add new records to an Excel table in OneDrive or SharePoint without downloading the file: match columns to the table header, skip rows already present, send rows in batches, and retry safely.",[10,29],"writing-excel",{"path":31,"title":32,"description":33,"type":16,"topics":34,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fauthenticate-to-microsoft-graph-with-msal-for-excel-automation","Authenticate to Microsoft Graph with MSAL for Excel Automation","The Excel workbook API accepts only delegated tokens, while file downloads work app-only. Set up MSAL device-code sign-in with a persistent token cache for scheduled jobs, and client credentials where they are allowed.",[10],{"path":36,"title":37,"description":38,"type":16,"topics":39,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fcall-excel-worksheet-functions-through-microsoft-graph","Call Excel Worksheet Functions Through Microsoft Graph","Use Excel's own calculation engine from Python without Excel installed — call worksheet functions such as PMT and VLOOKUP on a workbook in OneDrive or SharePoint through Microsoft Graph, pass values and ranges as arguments, read results and Excel errors, and reuse a session for many calls.",[10,40],"excel-formulas",{"path":42,"title":43,"description":44,"type":16,"topics":45,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fcopy-a-template-workbook-in-sharepoint-with-microsoft-graph","Copy a Template Workbook in SharePoint with Microsoft Graph","Create new Excel workbooks from a template that lives in SharePoint or OneDrive using Microsoft Graph from Python: find the template by path, start a server-side copy into a destination folder, poll the asynchronous monitor URL until the copy finishes, handle name clashes, then fill in the copy through the workbook API without downloading anything.",[10,46],"report-layouts",{"path":48,"title":49,"description":50,"type":16,"topics":51,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fcreate-a-new-workbook-in-onedrive-with-microsoft-graph","Create a New Workbook in OneDrive with Microsoft Graph","Create an Excel workbook in OneDrive or SharePoint from Python with Microsoft Graph: build the xlsx in memory, upload it with a simple PUT, control what happens when a file with the same name exists, use an upload session with correctly sized chunks for larger files, turn a range into an Excel table through the workbook API, and verify the requests before pointing the code at a real tenant.",[10],{"path":53,"title":54,"description":55,"type":16,"topics":56,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fhandle-microsoft-graph-throttling-for-excel","Handle Microsoft Graph Throttling in Excel Automation","Keep Excel Online automation running when Microsoft Graph pushes back — honour Retry-After on 429 and 503 responses, back off with jitter on 504s, never blindly retry non-idempotent writes, run one worker per workbook, and handle throttled requests inside JSON batches. Includes a retry client you can test without a network.",[10,57,58],"reliable-jobs","troubleshooting",{"path":60,"title":61,"description":62,"type":16,"topics":63,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fread-an-excel-file-from-sharepoint-or-onedrive-into-pandas","Read an Excel File from SharePoint or OneDrive into pandas","Download a workbook from a SharePoint library or a user's OneDrive with Microsoft Graph and read it straight into pandas from memory — resolving sites and drives, skipping unchanged files, and handling whole folders.",[10,64,65,66],"publishing","reading-excel","pandas",{"path":68,"title":69,"description":70,"type":16,"topics":71,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fread-and-write-excel-online-ranges-with-microsoft-graph","Read and Write Excel Online Ranges with Microsoft Graph","Edit a workbook in OneDrive or SharePoint in place: read a range or the used range into pandas, write a DataFrame back with the right address, send dates and number formats correctly, and avoid the null-means-skip trap.",[10,65,29],{"path":73,"title":74,"description":75,"type":16,"topics":76,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Frecalculate-excel-online-workbooks-with-graph-sessions","Recalculate Excel Online Workbooks with Graph Sessions","Use workbook sessions to make multi-call Graph jobs fast and consistent, force a recalculation before reading results, run what-if scenarios that are never saved, and handle slow session creation.",[10,40],{"path":78,"title":79,"description":80,"type":16,"topics":81,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Frun-a-report-when-an-excel-file-changes-in-onedrive","Run a Report When an Excel File Changes in OneDrive","Trigger a report as soon as someone saves a workbook in OneDrive or SharePoint, instead of on a fixed schedule: poll the file's cTag cheaply, use the Graph delta query to find every changed workbook in a folder, or receive webhook notifications and answer Microsoft's validation handshake — with debouncing so a burst of autosaves runs the report once, and the code tested against mocks.",[10,82],"scheduling",{"path":84,"title":85,"description":86,"type":16,"topics":87,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fshare-an-excel-file-in-onedrive-with-a-link-using-graph","Share an Excel File in OneDrive with a Link Using Graph","Share an Excel workbook stored in OneDrive or SharePoint from Python with Microsoft Graph: create view or edit links scoped to your organisation or to named people, set an expiry date, invite specific recipients with or without an email, list who has access, and remove links that are no longer needed.",[10,64],{"path":89,"title":90,"description":91,"type":16,"topics":92,"kind":11},"\u002Fautomating-reporting-workflows\u002Fautomating-excel-online-with-microsoft-graph\u002Fsort-and-filter-an-excel-online-table-with-microsoft-graph","Sort and Filter an Excel Online Table with Microsoft Graph","Sort and filter an Excel table in OneDrive or SharePoint from Python with Microsoft Graph: apply multi-column sorts, filter a column by values, custom criteria or top items, read back only the visible rows, clear filters again, and decide when it is better to read the rows and filter in pandas instead of changing the shared workbook.",[10,93],"tables-and-filters",{"path":95,"title":96,"description":97,"type":16,"topics":98,"kind":11},"\u002Fautomating-reporting-workflows\u002Femailing-excel-reports-with-smtplib\u002Fsend-an-excel-report-with-microsoft-graph-api","Send an Excel Report with the Microsoft Graph API","Basic SMTP auth is off in most tenants. Send the workbook through Graph instead: a client-credentials token, an inline attachment, and an upload session for larger files.",[10],{"path":100,"title":101,"description":102,"type":16,"topics":103,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fchoosing-a-python-excel-library\u002Fpython-vs-office-scripts-for-excel-automation","Python vs Office Scripts for Excel Automation","Choose between Python and Office Scripts for automating Excel: where each runs, the same task written in TypeScript and in Python, how each is scheduled and shared, what each can reach — files, databases, APIs — limits and licensing, testing and version control, and when to combine an Office Script with a Python job.",[104,10],"choosing-libraries",1790972052271]