Skip to content

Microsoft OneDrive 节点#

使用 Microsoft OneDrive 节点在 Microsoft OneDrive 中自动化工作,并将 Microsoft OneDrive 与其他应用程序集成。n8n 内置支持广泛的 Microsoft OneDrive 功能,包括创建、更新、删除和获取文件和文件夹。

在此页面上,您将找到 Microsoft OneDrive 节点支持的操作列表以及更多资源的链接。

凭据

请参考 Microsoft 凭据 获取设置身份验证的指导。

此节点可用作 AI 工具

此节点可用于增强 AI 代理的功能。以这种方式使用时,许多参数可以自动设置,或使用 AI 指导的信息设置 - 在 AI 工具参数文档中了解更多信息。

操作#

  • File 文件
    • Copy a file 复制文件
    • Delete a file 删除文件
    • Download a file 下载文件
    • Get a file 获取文件
    • Rename a file 重命名文件
    • Search a file 搜索文件
    • Share a file 共享文件
    • Upload a file up to 4MB in size 上传最大4MB的文件
  • Folder 文件夹
    • Create a folder 创建文件夹
    • Delete a folder 删除文件夹
    • Get Children (get items inside a folder) 获取子项(获取文件夹内的项目)
    • Rename a folder 重命名文件夹
    • Search a folder 搜索文件夹
    • Share a folder 共享文件夹

模板和示例#

Hacker News to Video Content

by Alex Kim

View template details
Working with Excel spreadsheet files (xls & xlsx)

by n8n Team

View template details
📂 Automatically Update Stock Portfolio from OneDrive to Excel

by Louis

View template details
Browse Microsoft OneDrive integration templates, or search all templates

相关资源#

请参考 Microsoft 的 OneDrive API 文档 了解有关该服务的更多信息。

查找文件夹 ID#

要对文件夹执行操作,您需要提供 ID。您可以通过以下方式找到:

  • 在文件夹的 URL 中
  • 使用节点搜索它。如果使用 MS 365(其中 OneDrive 在幕后使用 SharePoint),您需要这样做:
    1. 选择 Resource 资源 > Folder 文件夹
    2. 选择 Operation 操作 > Search 搜索
    3. Query 查询 中,输入文件夹名称。
    4. 选择 Execute step 执行步骤。n8n 运行查询并返回有关文件夹的数据,包括包含文件夹 ID 的 id 字段。