Microsoft Excel Automation

This n8n workflow automates Microsoft Excel tasks via the Microsoft Graph API, managing worksheets and workbook data. Key nodes include Webhook (receives POST requests), Input Validation (sets parameters), Add Worksheet, Get All Workbooks, Get All Worksheets, Get Worksheet Content (API interactions), Prepare Table Data (formats data), and Success/Error Response nodes (handle outputs). It simplifies Excel automation. Set up Requirements and Configuration: Install n8n by downloading from n8n.io for self-hosting or sign up at cloud.n8n.io for cloud setup. Follow installation prompts or create a cloud account. Obtain Microsoft Graph API credentials via OAuth2: sign in to portal.azure.com, register an app in Azure AD, grant 'Files.ReadWrite.All' permissions, and note the Client ID, Client Secret, and redirect URI. In n8n, import the provided JSON to create the workflow. Configure the 'Add Worksheet,' 'Get All Workbooks,' 'Get All Worksheets,' and 'Get Worksheet Content' nodes with your Microsoft Graph OAuth2 credentials under 'Credentials,' selecting 'Microsoft Excel OAuth2.' Set the Webhook node’s path to 'excel-operations' and ensure it accepts POST requests. The Input Validation node checks for valid workbook IDs and operations ('excel_operations_test', 'workbook_operations', 'worksheet_operations', 'table_operations'). Testing and Deployment Steps: Test by sending a POST request to the Webhook URL (from the Webhook node) using Postman. Example JSON body: {'operation': 'excel_operations_test', 'workbookId': '51F07A8CA9E72D69!136', 'worksheetName': 'TestSheet', 'tableRange': 'A1:D10'}. The 'Success Response' node returns a 200 status with operation details, or 'Invalid Input Response' (400 status) for invalid workbook IDs. If credentials are invalid, the 'Worksheet Creation Error' or 'Excel Operations Error' nodes return a 502 status. Activate the workflow in n8n’s interface for deployment. Monitor logs for errors like invalid credentials or workbook IDs, and verify the OAuth2 setup or input formats if failures occur.

$6.99

Workflow steps: 17

Integrated apps: webhook, set, if

Microsoft Excel Automation preview