> For the complete documentation index, see [llms.txt](https://academy.any2info.com/any2info-academy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.any2info.com/any2info-academy/no-code-platform/data-studio/data-hubs/toolbox/import-and-export/erp/import-from-microsoft-onedrive.md).

# Import from Microsoft OneDrive

**Category:** ERP

**Version:** 1.0

**Last updated:** May 28, 2026

**Author:** Any2Info

***

### Description

The **Import From Microsoft OneDrive** node allows you to download files from Microsoft OneDrive into your data flow.\
It uses Microsoft Graph APIs to securely access files and retrieve both file content and metadata.

Microsoft OneDrive is a cloud-based storage service within Microsoft 365, enabling centralized file storage and collaboration.\
Through the Microsoft Graph API, this node provides a standardized and secure way to access files and folders in your OneDrive environment.

The node supports importing either a **single file** or **multiple files from a folder**.

#### How it works

1. Select a valid **Connection** to Microsoft OneDrive
2. Choose whether to import a **File** or a **Folder**
3. Select the file or folder using the picker
4. The node downloads the file(s)
5. The output contains one row per file, including metadata and file content

***

### Configuration Options

| Setting       | Required | Description                                                                         |
| ------------- | -------- | ----------------------------------------------------------------------------------- |
| Connection    | Yes      | Select a Microsoft Office 365 connection or an OAuth2 connection (Microsoft Graph). |
| Selection     | Yes      | Choose whether to import a **File** or a **Folder**.                                |
| File / Folder | Yes      | Opens a picker to select a single file or a folder, depending on the Selection.     |

***

### Selection Types

#### File

Use this option to download a single file.

**Behavior:**

* Downloads the selected file
* Outputs exactly one row

#### Folder

Use this option to download all files within a folder.

**Behavior:**

* Retrieves all items in the selected folder
* Filters out subfolders
* Downloads each file individually
* Outputs one row per file

**Important:**

* Only files **directly inside the selected folder** are included
* Subfolders and their contents are **not** processed (non-recursive)

***

### Output

The node outputs a table where each row represents a downloaded file.

| Column     | Description                        |
| ---------- | ---------------------------------- |
| Id         | OneDrive item ID of the file       |
| FileName   | Name of the file                   |
| Extension  | File extension (e.g. `.pdf`)       |
| Size       | File size in bytes                 |
| File       | The downloaded file                |
| MimeType   | MIME type (e.g. `application/pdf`) |
| Created    | Creation date                      |
| Modified   | Last modified date                 |
| CreatedBy  | User who created the file          |
| ModifiedBy | User who last modified the file    |
| WebUrl     | Direct OneDrive URL to the file    |

***

### Tips & Best Practices

* Use **Folder selection** for batch processing multiple files
* Be aware that folder import is **not recursive**
* Ensure the connection has permission to read the selected files
* Each file is fully downloaded and included in the **File** column
* File availability depends on user permissions in OneDrive

***

### Changelog

| Version | Date         | Change                               |
| ------- | ------------ | ------------------------------------ |
| 1.0     | May 28, 2026 | Initial documentation version added. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://academy.any2info.com/any2info-academy/no-code-platform/data-studio/data-hubs/toolbox/import-and-export/erp/import-from-microsoft-onedrive.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
