OneDrive Excel Sheets
Write Keboola tables to an Excel worksheet in OneDrive, Office 365 or SharePoint, pick or create the workbook and worksheet, and overwrite or append rows.
This data destination connector exports tables from your Storage tables as Excel sheets to Microsoft OneDrive (opens in a new tab).
Microsoft OneDrive (opens in a new tab) cloud storage integrates Office365 (opens in a new tab) and SharePoint (opens in a new tab) sites, so with this connector you can write to any Excel sheet on your personal or business account.
The contents of the sheet can be overwritten or new lines can be added at the end.
Before you start
You need
- A Microsoft account with OneDrive that you can authorize: a personal account, or a work or school (Office 365) account. To write to a SharePoint site, the account needs access to that site. The connector asks for the Microsoft Graph permissions
offline_access,User.Read,Files.ReadWrite.AllandSites.ReadWrite.All. If your organization restricts user consent to apps, a Microsoft Entra admin must approve these permissions before the authorization succeeds. - An Excel workbook (XLSX) to write to, or a path where the connector should create one.
What each tab needs
- Prompt tab Kai, the Kai Agent button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai.
- UI tab a browser.
- CLI / API tab kbagent, connected to your project. The checks only read.
Configuration
Section titled “Configuration”Create a new configuration of the OneDrive Excel Sheets data destination connector.
Then, click Authorize Account to authorize the configuration.
Click Add Table to configure the export.

Select a Table from your buckets and click Add Table.

Use the file picker to list accessible Excel files – workbooks.
Alternatively, you can create a new workbook.

Go through the list and select a file. Click Open to confirm the file you want to write to.

The target file is specified by Drive ID and File ID. They are automatically filled in.
File Name is for your information only and its change doesn’t affect functionality.

Click Load Worksheets to select a worksheet from the workbook configured in the previous step.
Alternatively, you can create a new worksheet.

In the list that appeared, click the name of the worksheet you want to set as the target.

The worksheet is specified by Worksheet ID. It is automatically filled in.
Worksheet Name is for your information only and its change doesn’t affect functionality.
You can check the Append checkbox to append new rows after the existing ones;
otherwise, the contents of the worksheet will be overwritten.

Click Save when you’re done.

Then click Run Component.
Check:
Did the last job of the OneDrive Excel Sheets data destination configuration my-onedrive-config end with success? Give its end time.Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.
The job ends with Success, and the worksheet in OneDrive holds the table’s rows: in place of the old contents, or below them if you checked Append.
kbagent job list --component-id keboola.wr-onedrive --limit 1If you have several configurations, add --config-id with yours; the job’s status shows success, and then check the destination as in the UI tab.
Modify Configuration
Section titled “Modify Configuration”When a table is added to the connector, it is displayed in the list of tables.
Configured tables are stored as configuration rows.

Each table has a different setting, but all tables share the same authorization to OneDrive account.
The list shows the row name, and the source table in Storage.
You can click the row to modify the configuration.
Create a New Workbook
Section titled “Create a New Workbook”You can create a new workbook instead of using the existing one.
Click Create Workbook.

Specify the full file Path and click Create.

File Name, Drive ID, and File ID are automatically filled in.
Create a New Worksheet
Section titled “Create a New Worksheet”You can create a new worksheet instead of using an existing one.
Click Create Worksheet.

Specify the worksheet’s Name and click Create.

Worksheet Name, and Worksheet ID are automatically filled in.
Was this page helpful?
Thank you for helping improve Keboola's documentation!