Package Information
Downloads: 408 weekly / 408 monthly
Latest Version: 1.0.4
Documentation
N8N SharePoint Excel Node
An N8N community node that allows you to read Excel tables from SharePoint and perform table lookups.
Features
- Get Table: Retrieve all data from a named Excel table in SharePoint
- Lookup: Search for values in a table column and return matching rows
- Get Table Names: List all table names in an Excel file
- Multiple Match Types: Exact match, contains, starts with, ends with
- Flexible Output: Return all matches or just the first one
Installation
Via NPM (Recommended)
N8N will automatically detect and install this node when you use it in a workflow, or you can install it manually:
npm install n8n-nodes-sharepointexcel
Manual Installation
- Install dependencies:
npm install
- Build the node:
npm run build
- Copy the
distfolder to your N8N custom nodes directory:- For Docker:
/home/node/.n8n/custom/ - For npm:
~/.n8n/custom/
- For Docker:
Setup
Azure AD App Registration
- Go to Azure Portal → Azure Active Directory → App registrations
- Create a new registration
- Note your Application (client) ID and Directory (tenant) ID
- Go to "Certificates & secrets" → Create a new client secret
- Go to "API permissions" → Add permissions:
- Microsoft Graph → Delegated permissions:
Files.Read.AllSites.Read.All
- Click "Grant admin consent"
- Microsoft Graph → Delegated permissions:
N8N Credentials Setup
- In N8N, go to Credentials → Add Credential
- Select "SharePoint OAuth2 API"
- Enter your:
- Client ID: Your Azure AD Application ID
- Client Secret: Your Azure AD Client Secret
- Tenant ID: Your Azure AD Tenant ID
- Complete the OAuth2 flow to authorize access
Usage
Get Table Names
- Add the "SharePoint Excel" node to your workflow
- Select operation: "Get Table Names"
- Enter:
- SharePoint Site URL:
https://yourtenant.sharepoint.com/sites/yoursite - File Path:
/Shared Documents/MyFile.xlsx
- SharePoint Site URL:
- Execute to get a list of all table names
Get Table Data
- Select operation: "Get Table"
- Enter:
- SharePoint Site URL: Your SharePoint site URL
- File Path: Path to your Excel file
- Table Name: Name of the Excel table (e.g., "Table1")
- Execute to get all rows from the table
Table Lookup
- Select operation: "Lookup"
- Enter:
- SharePoint Site URL: Your SharePoint site URL
- File Path: Path to your Excel file
- Table Name: Name of the Excel table
- Lookup Column: Column name to search in
- Lookup Value: Value to search for
- Match Type: How to match (exact, contains, startsWith, endsWith)
- Return All Matches: Whether to return all matches or just the first
- Execute to get matching rows
Example Workflow
Trigger → SharePoint Excel (Get Table Names) →
SharePoint Excel (Lookup) → Process Results
File Path Format
The file path should be relative to the SharePoint site root:
/Shared Documents/MyFile.xlsx/Documents/Reports/Data.xlsx/SiteAssets/Data/Table.xlsx
Excel Table Requirements
- The Excel file must contain named tables (created via Insert → Table in Excel)
- Table names are case-sensitive
- Column names are taken from the table header row
Troubleshooting
"Table not found" error
- Ensure the table name matches exactly (case-sensitive)
- Verify the table exists in the Excel file
- Use "Get Table Names" operation to list available tables
Authentication errors
- Verify your Azure AD app has the correct permissions
- Ensure admin consent has been granted
- Check that the OAuth2 flow completed successfully
File not found
- Verify the file path is correct
- Ensure the path starts with
/ - Check that the file exists in SharePoint
Development
# Build
npm run build
# Watch mode
npm run dev
# Lint
npm run lint
License
MIT