Skip to main content

Microsoft Excel Connector

Microsoft Excel Microsoft Excel is a spreadsheet application developed by Microsoft. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications. This component allows you to read and build .xlsx files. (spreadsheets)

Connections

OAuth 2.0

Authenticate using OAuth 2.0

To connect Microsoft Excel, create and configure an App Registration in the Microsoft Entra admin center.

Prerequisites

  • A Microsoft 365 account with access to SharePoint or OneDrive
  • Administrator access to Microsoft Entra (Azure Active Directory)

Setup Steps

  1. Navigate to Microsoft Entra > Identity > Applications > App registrations
  2. Select New registration
  3. Configure the basic settings:
    • Name: Provide a descriptive name for the application
    • Supported account types: Select Accounts in any organizational directory (Any Azure AD directory - Multitenant)
    • Redirect URI: Select Web platform and add https://oauth2.integrations.acme.com/callback
  4. Click Register to create the app registration
  5. From the Overview page, copy the Application (client) ID
  6. Navigate to Certificates & Secrets > Client secrets tab
  7. Click New client secret, provide a description, select an expiration period, and click Add
  8. Copy the secret Value immediately -- it cannot be retrieved later
  9. Navigate to API Permissions and click Add a permission
  10. Select Microsoft Graph > Delegated permissions and select all permissions required for the integration
Refresh Token Support

Include the offline_access scope in the app registration. It is essential for maintaining the OAuth connection and receiving refresh tokens. Without it, re-authentication is required every hour.

Configure the Connection

Create a connection of type Microsoft Excel OAuth 2.0:

  • Client ID: The Application (client) ID from the app registration Overview page
  • Client Secret: The secret Value created above
  • Scopes: Space-separated list of OAuth 2.0 permission scopes. The default value covers common file and site operations:
    Files.ReadWrite.All Sites.Read.All Sites.ReadWrite.All offline_access
    Refer to Microsoft Graph permissions reference for additional scope information

For non-multitenant app registrations, replace the default Authorize URL and Token URL with tenant-specific values:

  • Authorize URL: https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorize
  • Token URL: https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
ScopesSpace-separated list of OAuth 2.0 permission scopes required for the integration.Files.ReadWrite.All Sites.Read.All Sites.ReadWrite.All offline_access
Client IDThe Client ID from the OAuth application registration in the Azure Portal.
Client SecretThe Client Secret from the OAuth application registration in the Azure Portal.
SourceThe source from which the workbooks will be listed.

Actions

Build Spreadsheet

Creates a buffer containing a spreadsheet made from a 2D JavaScript array.

InputCommentsDefault
Spreadsheet DataA 2D array of cell values to insert into the spreadsheet. Each inner array represents a row.
[
[
1,
2,
3,
4,
5
],
[
"foo",
"bar",
"2014-02-19T14:30:00.000Z",
"0.3"
],
[
true,
false,
null,
"sheetjs"
]
]
File NameThe name to assign to the generated spreadsheet file.
Create OptionsConfiguration options for spreadsheet generation, such as column widths. Accepts a JSON object with node-xlsx compatible options.
{
"!cols": [
{
"wch": 6
},
{
"wch": 7
},
{
"wch": 10
},
{
"wch": 20
}
]
}

Build Spreadsheet with Multiple Sheets

Creates a buffer containing multiple spreadsheets made from a 3D JavaScript array.

InputCommentsDefault
Spreadsheet DataA 3D array of sheet data. Each top-level array is a sheet, containing rows of cell values.
[
[
[
4,
5,
6
],
[
7,
8,
9,
10
],
[
11,
12,
13,
14
],
[
"baz",
null,
"qux"
]
],
[
[
1,
2,
3,
4,
5
],
[
"foo",
"bar",
"2014-02-19T14:30:00.000Z",
"0.3"
],
[
true,
false,
null,
"sheetjs"
]
]
]
Sheet NamesThe name to assign to each sheet in the spreadsheet.
Structured Sheet NamesA JSON array of sheet names as an alternative to the Sheet Names input. Takes priority over the Sheet Names input when both are provided.
Create OptionsConfiguration options for spreadsheet generation, such as column widths. Accepts a JSON object with node-xlsx compatible options.
{
"!cols": [
{
"wch": 6
},
{
"wch": 7
},
{
"wch": 10
},
{
"wch": 20
}
]
}

Clear Cell Range

Clear range values such as format, fill, and border.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to clear cells from.
Worksheet IDThe ID or name of the worksheet to clear cells from.
AddressThe address of the range to update.
Apply ToDetermines the type of clear action.

Create Column

Creates a column object inside a worksheet table.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to create the column in.
Worksheet IDThe ID or name of the worksheet to create the column in.
Table IDThe ID or name of the table to create the column in.
ValuesA two-dimensional array of unformatted values of the table column.
Column IDSpecifies the relative position of the new column. The previous column at this position is shifted to the right. The index value should be equal to or less than the last column's index value, so it can't be used to append a column at the end of the table. Zero-indexed.

Create Multiple Rows

Adds rows to the end of a table.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to create the row in.
Worksheet IDThe ID or name of the worksheet to create the row in.
Table IDThe ID or name of the table to create the row in.
ValuesA 2D array of values for the row cells.
Row IndexSpecifies the relative position of the new row. If null, the addition happens at the end. Any rows below the inserted row are shifted downwards. Zero-indexed.

Create Row

Creates a row object inside a worksheet table.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to create the row in.
Worksheet IDThe ID or name of the worksheet to create the row in.
Table IDThe ID or name of the table to create the row in.
ValuesA 2D array of values for the row cells.
Row IndexSpecifies the relative position of the new row. If null, the addition happens at the end. Any rows below the inserted row are shifted downwards. Zero-indexed.

Create Table

Creates a table object inside a worksheet.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to create the table in.
Worksheet IDThe ID of the worksheet to create the table in.
AddressAddress or name of the range object representing the data source. If the address doesn't contain a sheet name, the currently active sheet is used.
Has HeadersWhen true, indicates the data being imported has column labels. When false, Excel generates a header row and shifts data down by one row.false

Create Worksheet

Creates a worksheet object inside a workbook.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to update.
Worksheet NameThe name shown on the worksheet tab in the workbook. Must be unique within the workbook.

Delete Cell Range

Deletes the cells associated with the range.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to delete cells from.
Worksheet IDThe ID or name of the worksheet to delete cells from.
AddressThe address of the range to update.
ShiftSpecifies which way to shift the cells.

Delete Column

Deletes a column object from a worksheet table.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to delete the column from.
Worksheet IDThe ID or name of the worksheet to delete the column from.
Table IDThe ID or name of the table to delete the column from.
Column IDThe id or name of the column to delete.

Delete Table

Deletes a table object from a worksheet.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to delete the table from.
Worksheet IDThe ID or name of the worksheet to delete the table from.
Table IDThe ID or name of the table to delete.

Delete Worksheet

Deletes a worksheet from a workbook.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to delete.
Worksheet IDThe ID of the worksheet to delete.

Get Cell

Retrieves a cell from a worksheet.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to list cells from.
Worksheet IDThe ID or name of the worksheet to list cells from.
Row IndexThe zero-based index of the row to access within the worksheet.
Column IndexThe zero-based index of the column to access within the worksheet.

Get Cell Range

Retrieve the properties and relationships of a range object.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to list cells from.
Worksheet IDThe ID or name of the worksheet to list cells from.

Get Column

Retrieves a column object from a worksheet table.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to list column from.
Worksheet IDThe ID or name of the worksheet to list column from.
Table IDThe ID or name of the table to list column from.
Column IDThe ID or name of the column to retrieve.

Get Table

Retrieves a table object from a worksheet.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to get the table from.
Worksheet IDThe ID or name of the worksheet to get the table from.
Table IDThe unique identifier or name of the table within the worksheet.

Get Worksheet

Retrieves a worksheet object from a workbook.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook to retrieve.
Worksheet IDThe ID or name of the worksheet to retrieve.

List Columns

Retrieve a list of columns from a worksheet table.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to list columns from.
Worksheet IDThe ID or name of the worksheet to list columns from.
Table IDThe ID or name of the table to list columns from.
Fetch AllWhen true, automatically fetches all pages of results using pagination.false
ExpandA comma-separated list of related resources to expand and include in the response.
FilterAn OData filter expression to narrow down results. For example: startswith(givenName,'J').
FormatThe media format for the response. For example: json.
Order ByAn OData orderBy expression to sort results. For example: displayName desc.
SearchA search string to filter results by matching against indexed properties.
SelectA comma-separated list of properties to include in the response. Reduces payload size.
SkipIndexes into a result set. Also used by some APIs to implement paging and can be used together with $top to manually page results.
Skip TokenRetrieves the next page of results from result sets that span multiple pages.
TopThe maximum number of results to return per page.

List Rows

Retrieve a list of rows from a worksheet table.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to list rows from.
Worksheet IDThe ID or name of the worksheet to list rows from.
Table IDThe ID or name of the table to list rows from.
Fetch AllWhen true, automatically fetches all pages of results using pagination.false
ExpandA comma-separated list of related resources to expand and include in the response.
FilterAn OData filter expression to narrow down results. For example: startswith(givenName,'J').
FormatThe media format for the response. For example: json.
Order ByAn OData orderBy expression to sort results. For example: displayName desc.
SearchA search string to filter results by matching against indexed properties.
SelectA comma-separated list of properties to include in the response. Reduces payload size.
SkipIndexes into a result set. Also used by some APIs to implement paging and can be used together with $top to manually page results.
Skip TokenRetrieves the next page of results from result sets that span multiple pages.
TopThe maximum number of results to return per page.

List Tables

Retrieve a list of tables from a worksheet.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to list tables from.
Worksheet IDThe ID or name of the worksheet to list tables from.
Fetch AllWhen true, automatically fetches all pages of results using pagination.false
ExpandA comma-separated list of related resources to expand and include in the response.
FilterAn OData filter expression to narrow down results. For example: startswith(givenName,'J').
FormatThe media format for the response. For example: json.
Order ByAn OData orderBy expression to sort results. For example: displayName desc.
SearchA search string to filter results by matching against indexed properties.
SelectA comma-separated list of properties to include in the response. Reduces payload size.
SkipIndexes into a result set. Also used by some APIs to implement paging and can be used together with $top to manually page results.
Skip TokenRetrieves the next page of results from result sets that span multiple pages.
TopThe maximum number of results to return per page.

List Workbooks

Returns a collection of workbooks from either a OneDrive or SharePoint site.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
PathThe path to the file or folder within the drive. Use this or Drive or Site ID.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from. Use this or Path.
List or Item IDThe SharePoint list ID or OneDrive item ID used to scope the workbook search.
Fetch AllWhen true, automatically fetches all pages of results using pagination.false
ExpandA comma-separated list of related resources to expand and include in the response.
SelectA comma-separated list of properties to include in the response. Reduces payload size.
Skip TokenRetrieves the next page of results from result sets that span multiple pages.
TopThe maximum number of results to return per page.
Order ByAn OData orderBy expression to sort results. For example: displayName desc.

List Worksheets

Retrieve a list of worksheet objects.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook to retrieve.
Fetch AllWhen true, automatically fetches all pages of results using pagination.false
ExpandA comma-separated list of related resources to expand and include in the response.
FilterAn OData filter expression to narrow down results. For example: startswith(givenName,'J').
FormatThe media format for the response. For example: json.
Order ByAn OData orderBy expression to sort results. For example: displayName desc.
SearchA search string to filter results by matching against indexed properties.
SelectA comma-separated list of properties to include in the response. Reduces payload size.
SkipIndexes into a result set. Also used by some APIs to implement paging and can be used together with $top to manually page results.
Skip TokenRetrieves the next page of results from result sets that span multiple pages.
TopThe maximum number of results to return per page.

Raw Request

Send raw HTTP request to Microsoft Excel API.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
URLInput the path only (/me/drive), The base URL is already included (https://graph.microsoft.com/v1.0). For example, to connect to https://graph.microsoft.com/v1.0/me/drive, only /me/drive is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Read from Buffer

Parses an xlsx file from a buffer and outputs an array of worksheets.

InputCommentsDefault
FileA spreadsheet file or buffer to be parsed into array values.

Read from URL

Parses an xlsx file from a URL endpoint and outputs an array of worksheets.

InputCommentsDefault
File URLThe URL of the xlsx file to download and parse.

Update Cell Range

Update the properties of a range object.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to update cells from.
Worksheet IDThe ID or name of the worksheet to update cells from.
AddressThe address of the range to update.
Column HiddenWhen true, all columns in the current range are hidden.false
Row HiddenWhen true, all rows in the current range are hidden.false
FormulasRepresents the formula in A1-style notation.
Formulas LocalRepresents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German.
Formulas R1C1Represents the formula in R1C1-style notation.
Number FormatRepresents Excel's number format code for the given cell.
ValuesRepresents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string.

Update Column

Updates a column object from a worksheet table.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to update the column from.
Worksheet IDThe ID or name of the worksheet to update the column from.
Table IDThe ID or name of the table to update the column from.
Column IDThe id or name of the column to update.
ValuesRepresents the raw values of the specified range.

Update Table

Updates a table object from a worksheet.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to update the table from.
Worksheet IDThe ID or name of the worksheet to update the table from.
Table IDThe ID or name of the table to update.
NameThe display name of the table within the worksheet.
Show HeadersWhen true, the header row of the table is visible.false
Show TotalsWhen true, the totals row of the table is visible.false
StyleThe Excel table style to apply. Controls visual formatting such as banding and header colors.

Update Worksheet

Updates a worksheet object from a workbook.

InputCommentsDefault
ConnectionThe Microsoft Excel connection to use. OneDrive and SharePoint connections are supported.
Drive or Site IDThe ID of the OneDrive or SharePoint site to list workbooks from.
Workbook IDThe ID of the workbook that contains the worksheet to update.
Worksheet IDThe ID of the worksheet to update.
Worksheet NameThe new display name of the worksheet.
PositionThe zero-based position of the worksheet within the workbook.
Worksheet VisibilityThe visibility state of the worksheet. Visible worksheets appear in the tab bar. Hidden worksheets can be unhidden from the UI. VeryHidden worksheets require code to unhide.