File Updated
Trigger that fires when a OneDrive file's content or metadata changes. Returns file ID, last modified time, and modifier info.
OneDrive is Microsoft’s cloud storage solution enabling users to store, sync, and share files across devices, offering offline access, real-time collaboration, and enterprise-grade security
Trigger that fires when a OneDrive file's content or metadata changes. Returns file ID, last modified time, and modifier info.
Triggers when a file or folder is moved to a different path or renamed in OneDrive. Includes both old and new path/name data in the payload.
Trigger that fires when a new version of a specified OneDrive file is created.
Triggers when a new file is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.
Triggers when a new folder is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.
Triggers when a file or folder is deleted in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.
Triggers when an existing file or folder is modified in OneDrive. Uses Gmail-style state management and only detects actual modifications, not new creations.
Base trigger for OneDrive changes using Gmail-style state management. Subclasses override `filter_changes(...)` to extract only the relevant items.
Sharing Permission Added or Removed
Adds a new worksheet to an existing Excel workbook in OneDrive or SharePoint. The worksheet is created with the specified name and appended to the end of the workbook's worksheet collection. Use this action when you need to create a new sheet in an Excel file to organize data, add reports, or separate information into logical sections.
Recalculate formulas in an Excel workbook at the requested depth.
Tool to check in a checked out driveItem resource, making the version of the document available to others. Use when you need to check in a file that was previously checked out in OneDrive or SharePoint.
Tool to check out a driveItem to prevent others from editing it and make your changes invisible until checked in. Use when you need to lock a file for exclusive editing in SharePoint or OneDrive.
Clears values, formats, or both from a worksheet range in an Excel workbook stored in OneDrive or SharePoint without deleting cells or shifting neighboring data. Use this action when you need to reset a range while preserving the worksheet's cell structure.
Close an Excel workbook session without deleting the workbook.
Copies a DriveItem file or folder, optionally renaming it or specifying a destination folder. Copy requests may be asynchronous; a monitor URL is returned when supplied by the service, and an accepted request does not mean the copy is complete.
Creates a plain-text file in a user's OneDrive folder, identified by ID or path. The conflict behavior can fail, replace, or rename; content is plain text regardless of filename extension.
Tool to create a new permission on a OneDrive drive item. Use when you need to grant application or SharePoint group permissions to a file or folder. This endpoint supports creating application permissions and SharePoint site group permissions only.
Creates a new folder in the user's OneDrive with configurable conflict behavior, optionally within a specified parent_folder (by ID or full path from root) which, if not the root, must exist and be accessible.
Create an item in a SharePoint list using Microsoft Graph through the OneDrive connection. Use when you need to add a new row/item to a SharePoint list after resolving the site ID and list ID.
Tool to create a sharing link for a DriveItem (file or folder) by its unique ID. Use when you need to generate a shareable link for an item in OneDrive or SharePoint.
Create only a resumable upload session for a named file; this action does not upload bytes. It returns a short-lived preauthenticated uploadUrl for an external fragment uploader. Keep the URL secret and do not send an Authorization header to it.
Create only a resumable upload session at a root-relative path; this action does not upload bytes. It returns a short-lived preauthenticated uploadUrl for an external fragment uploader. Keep the URL secret and do not send an Authorization header to it.
Create a persistent or temporary session for an Excel workbook.
Tool to unfollow a driveItem by removing it from the user's followed items collection. Use when you need to stop following a file or folder that was previously marked to follow.
Tool to delete a permission from a drive item. Use when you need to revoke sharing access to a file or folder. Only non-inherited sharing permissions can be deleted.
Delete a DriveItem (file or folder) by ID from a specified drive or user's OneDrive, defaulting to the authenticated user's drive. The item is moved to the recycle bin rather than permanently deleted; storage quota is not freed until the recycle bin is emptied.
Revoke a Microsoft Graph beta permission from a SharePoint list or list item.
Tool to delete the permission navigation property for a shared drive item. Use when you need to remove a sharing link permission. This effectively revokes access via the specific share link.
Deletes a range of cells from an Excel worksheet in OneDrive, shifting remaining cells up or left to fill the gap.
Deletes a worksheet from a workbook in OneDrive by its ID or name. Use this action when you need to remove a specific worksheet from an Excel workbook stored in OneDrive or SharePoint. This action is irreversible — the worksheet cannot be recovered once deleted. Note that deleting the last visible worksheet in a workbook may result in an error.
Tool to discard the checkout of a driveItem, releasing it and discarding any changes made while checked out. Use when you need to cancel a checkout and revert changes on a file in SharePoint or OneDrive.
Downloads a file from a user's OneDrive using its item ID, which must refer to a file and not a folder. Response contains a content object with the downloaded file, MIME type, and name; raw file data is not returned directly. Parsing content from Excel, Word, PDF, or other formats requires additional tooling. The downloaded file can be passed to downstream tools such as OUTLOOK_SEND_EMAIL or OUTLOOK_CREATE_DRAFT.
Tool to download the contents of a specific previous version of a drive item (file). Returns the actual file content. Note: You cannot download the current version using this endpoint - it only works for previous versions.
Downloads the contents of a file from OneDrive by its path. The API returns a 302 redirect to a pre-authenticated download URL. Use when you know the file path but not the item ID.
Tool to download the contents of a driveItem converted to a specific format (e.g., PDF or HTML). Use when you need to convert Office documents to PDF or Loop/Fluid files to HTML before downloading. Supports accessing items by item_id or by path, and can target specific drives via drive_id.
Download thumbnail image bytes for a DriveItem identified by item ID.
Download thumbnail image bytes for a path-addressed item in the current user's OneDrive.
Find direct child folders in a OneDrive parent folder, optionally matching an exact name. Results are returned one page at a time; a page can be empty even when later pages contain matches.
Find files or folders by exact name within a specified OneDrive folder, without searching subfolders. Results may be paginated; iterate all pages to avoid missing matches.
Tool to follow a driveItem (file or folder) in OneDrive or SharePoint. Use when you need to add an item to the user's followed items list for tracking updates.
Apply dimensions, alignment, wrapping, font, fill, and borders to a workbook range. Components are updated sequentially, not atomically, so earlier formatting remains if a later update fails.
Extracts comments from a Word .docx file in OneDrive. The action downloads the document, parses the OOXML comments part, and returns structured comment data inline. When possible, it also includes the selected text and paragraph context from the document body so agents can understand what each comment refers to.
Retrieves properties and optionally expanded relationships of a Drive resource, including a specific drive or a user's, group's, or site's drive.
Retrieve the SharePoint list item associated with a driveItem.
Retrieve metadata for the root folder of the signed-in user's OneDrive or a specified user's OneDrive, such as size, child count, or web URL.
Tool to retrieve a special folder in OneDrive by name. Use when you need to access well-known folders (documents, photos, approot, etc.) without looking up by path or ID.
Resolve a OneDrive or SharePoint sharing URL or share ID to drive item metadata and available IDs. An optional sharing-link redemption setting can grant durable access to the item.
Tool to retrieve a specific followed driveItem from a drive. Use when you need to get details about a file or folder that the user has marked to follow.
Tool to retrieve the document library (drive) for a Microsoft 365 group. Use when you need to access the default document library associated with a specific group.
Retrieve OneDrive or SharePoint driveItem metadata by drive-relative path.
Retrieves the metadata of a DriveItem by its unique ID. Use this tool to get information about a specific file or folder in OneDrive when you have its ID. If a `drive_id` is not provided, it defaults to the user's main drive.
Retrieve a page of permissions for a DriveItem by ID, or by path in the current user's drive. Use the continuation token to retrieve further pages; returned permissions can include inherited and link-based access.
Tool to retrieve the thumbnails associated with a DriveItem. Use when you need to display visual previews of files. Response contains a `value` array with size keys (`small`, `medium`, `large`); thumbnails may not be generated for all file types or newly uploaded items, so handle an empty or missing `value` array. Returned thumbnail URLs are external HTTP endpoints with independent availability.
Tool to retrieve the version history of a DriveItem by its unique ID. Use when you need to access or list previous versions of a file. Version history may be unavailable or empty for folders or items in drives without versioning enabled.
Get recently accessed files and folders using the deprecated Microsoft Graph recent endpoint. Results reflect recent activity rather than modification time; the action returns a page of items and may include a next link.
Tool to access a shared DriveItem or collection of shared items using a shareId or encoded sharing URL. Returns the sharedDriveItem resource with metadata about the shared item and its owner. Use when you have a shareId or sharing token and need information about what was shared.
DEPRECATED: Use ONE_DRIVE_SEARCH_DRIVE_ITEMS to find a specific shared file or ONE_DRIVE_LIST_ONEDRIVE_SHARED_ITEMS to list files shared from other people's OneDrive accounts. Microsoft Graph sharedWithMe is degraded until November 2026 and will stop returning data after that.
Tool to get the items (list items) within a specific SharePoint list on a site. Use when you need to retrieve data from a SharePoint list.
Gets the content of a modern SharePoint site page. Use when you need to retrieve the details and content of a specific page within a SharePoint site.
Retrieves metadata for a specific SharePoint site by its ID. Use this action when you need to get details like display name, web URL, and creation/modification dates for a known SharePoint site.
Retrieves profile properties for a Microsoft user by user ID or user principal name, including available contact details, job information, and account status.
Read the fill color applied to an Excel worksheet range.
Retrieves the used range of a worksheet in an Excel workbook stored in OneDrive or SharePoint without requiring the caller to know an explicit A1 range address. Use this action to read the active data region of a worksheet, optionally ignoring formatting-only cells.
Retrieves a specific worksheet from an Excel workbook stored in OneDrive or SharePoint using Microsoft Graph API. Use this action when you need to get details about a particular worksheet, including its ID, name, position, and visibility. The worksheet can be identified by either its unique ID or its display name.
Grant an application permission on a SharePoint list or list item using Microsoft Graph beta.
Tool to grant users access to a link represented by a permission using an encoded sharing URL. Use when you need to give specific users access to a shared OneDrive or SharePoint resource.
Read a workbook table's occupied range and one page of its columns.
Invite users or grant permissions to a OneDrive file or folder with specified access roles. At least one of sending an invitation or requiring sign-in must be enabled.
Lists a complete OneDrive or SharePoint drive safely, one Microsoft Graph delta page per invocation. Start without `page_token`, then pass each `next_page_token` back until `sync_complete` is true. The terminal `delta_token` can be saved and passed back later to fetch changes since the completed snapshot. Delta enumeration is stable under concurrent writes and avoids the request burst caused by recursively fetching every folder in one execution.
Tool to retrieve recent activities on the authenticated user's OneDrive. Use when you need to track recent changes or actions performed across the drive.
Tool to retrieve a list of bundle resources from a specified drive. Bundles are collections of files (e.g., photo albums). Use when you need to list bundles in a drive.
Tool to list recent activities for a specific item in a OneDrive drive. Use when you need to track changes or actions performed on a file or folder.
Tool to retrieve a list of Drive resources available to the authenticated user, or for a specific user, group, or site. Use when you need to find out what drives are accessible. Returns only drives within the signed-in account's permission scope; missing drives indicate insufficient permissions or different tenant scope. Results are paginated — pass the returned next_page_token back as page_token across all pages to avoid missing drives. Returned drives represent document libraries and may not reflect full SharePoint site structure; use SHARE_POINT_GET_SITE_COLLECTION_INFO or SHARE_POINT_SEARCH_QUERY for broader coverage. Use driveType and webUrl to distinguish personal, system, and SharePoint-backed drives.
List the direct children (files/folders) of a OneDrive/SharePoint folder by DriveItem ID or path. Returns reliable pagination tokens for large folders. Use when you need to enumerate folder contents deterministically, find companion artifacts (e.g., .vtt/.docx files), or browse within a known folder.
List SharePoint sites followed by the signed-in organizational user. Microsoft documents a known issue that can make results incorrect.
Lists one page of files and folders at the root of a user's OneDrive without recursively listing subfolders. Pass the returned next-page token back to retrieve further pages; results may include remote-item pointers to shared items in other drives.
List files shared from other people's OneDrive accounts using Microsoft Graph Search match-all and a OneDrive-personal URL heuristic. This excludes SharePoint-site shares by design; use ONE_DRIVE_SEARCH_DRIVE_ITEMS for broad keyword/KQL search across OneDrive and SharePoint.
List drive item changes using Microsoft Graph delta, including additions, modifications and deletions, for a specified drive or the current user's drive. Initial enumeration can span multiple pages; follow next links until a delta link is returned, then use it for subsequent changes.
List one page of children beneath a folder addressed by a sharing link.
List Microsoft Graph beta permissions from a SharePoint list or list item.
Tool to track changes to items in a SharePoint list using a delta query. Use when you need to get newly created, updated, or deleted list items without performing a full read of the entire item collection.
Tool to retrieve permission details for a shared OneDrive or SharePoint item using a share ID. Use when you have an encoded sharing URL and need to check the permission level, password protection, and access details.
Tool to list all column definitions for a SharePoint site. Use this when you need to retrieve the schema or structure of columns within a specific SharePoint site.
Tool to track changes to DriveItems in the default document library of a SharePoint site. Use when you need to get a list of items that have been added, modified, or deleted since a previous state or to get an initial enumeration of all items.
Tool to list all lists under a specific SharePoint site. Use when you need to enumerate lists within a known site. Returns only Microsoft Graph-supported lists — internal/system lists are excluded, so results may be a strict subset of all site lists (e.g., 13 returned where 108 exist). Results are in the `data.value` array. IMPORTANT: Only works with organizational Microsoft 365 accounts (Azure AD/Entra ID). NOT supported for personal Microsoft accounts (MSA/Outlook.com/Hotmail). Personal OneDrive users cannot access SharePoint sites through this endpoint.
Return one page of deleted items from a SharePoint site's recycle bin. This action uses Microsoft Graph's beta API, which can change without notice and isn't supported for production applications.
Lists subsites of a SharePoint site for an organizational Microsoft 365 account. Results are paginated and can be filtered; an empty page does not necessarily mean the site has no subsites.
Lists current webhook subscriptions for the authenticated user or app, one page at a time. Results may span multiple drives and resources and can be filtered client-side by resource URL or type.
List defined names and formulas in an Excel workbook. Microsoft documents this endpoint for delegated work or school and personal Microsoft accounts. Application permissions are not supported.
Retrieves a list of all worksheets in an Excel workbook stored in OneDrive or SharePoint. Returns worksheet metadata including IDs, names, positions, and visibility states. Use this action when you need to enumerate available worksheets in a workbook, find a specific worksheet by name, or understand the workbook structure before performing operations on worksheet data.
Tool to move a file or folder to a new parent folder in OneDrive. Use when you need to reorganize your files or folders by changing their location. You can optionally rename the item during the move. If a file with the same name exists at the destination, the API returns `nameAlreadyExists`; use the `name` parameter to provide a unique name or resolve the conflict beforehand.
Tool to permanently delete a driveItem by its ID without moving it to the recycle bin. Use when you need to irreversibly remove a file or folder from OneDrive or SharePoint. This action cannot be undone.
Generates or retrieves a short-lived, permission-bound embeddable URL for a preview of a specific item. URLs expire and must be regenerated per session — do not cache. Use when you need to display a temporary preview of a file.
Reads a range of cells from an Excel workbook worksheet stored in OneDrive or SharePoint using Microsoft Graph API. Returns cell values, formulas, formatting, and metadata for the specified range. Use this action when you need to extract data from specific cells in an Excel file, whether reading a single cell, a rectangular range, an entire column, or an entire row. The range address must be specified in A1 notation (e.g., 'A1:B5').
Tool to restore a deleted OneDrive driveItem (file or folder) from the recycle bin. Use when you need to recover a deleted item to its original location or to a specified parent folder, optionally renaming it during restoration. IMPORTANT LIMITATION: This API is ONLY available for OneDrive Personal accounts. It does NOT work with OneDrive for Business or SharePoint. For Business/SharePoint accounts, use the SharePoint REST API endpoints (/_api/web/recyclebin) instead.
Restores a previous version of a DriveItem (file) by creating a new version with the content of the specified version. Use this action when you need to revert a file to an earlier version. The restoration is permanent and creates a new current version — the file cannot be automatically reverted after this operation, though you can restore again to a different version if needed. This action is irreversible in the sense that it immediately changes the current file content.
Remove selected recipients from a work or school specific-user sharing link.
Search OneDrive and accessible SharePoint files with Microsoft Graph Search. This does not produce a complete shared-with-me list; use deprecated ONE_DRIVE_GET_SHARED_ITEMS only when full shared-with-me enumeration is required before Microsoft removes that API in November 2026. Requires OneDrive permissions plus Sites.Read.All because SharePoint-backed files can appear in results.
Search OneDrive files and folders by keyword, with sorting and pagination. The action transforms certain KQL-like and path queries and removes wildcards; results may include files and folders, and recently changed items may be delayed by indexing.
Search SharePoint sites visible to an organizational Microsoft account.
Track changes beneath one folder, one Microsoft Graph delta page at a time.
Tool to update the metadata of a specific item (file or folder) in OneDrive. Use this to rename items, change descriptions, or move items to a new parent folder.
Tool to update the roles of an existing permission on a OneDrive drive item. Use when you need to change the access level (read, write, owner) for a specific permission on a file or folder.
Tool to update an existing file's content in OneDrive. When called without a `file` parameter, creates an upload session and returns its uploadUrl (legacy behavior — caller drives the PUT uploads). When called with a `file`, the action streams the file's bytes in chunks via the upload session and returns the final updated DriveItem. The item's ID is preserved (existing share links remain valid) unless conflict_behavior=rename causes the server to create a new item.
Update an application permission on a SharePoint list or list item using Microsoft Graph beta.
Update field values on a SharePoint list item using Microsoft Graph through the OneDrive connection. Use when you need to modify one or more columns on an existing SharePoint list item.
Update values, formulas, number formats, or row and column visibility in a table column's whole or data-body range.
Updates a range in a workbook worksheet using Microsoft Graph API. Use this action when you need to write data, formulas, or number formats to specific cells in an Excel workbook stored in OneDrive or SharePoint. The address parameter supports various formats including single cells, cell ranges, entire columns, or entire rows.
Updates properties of a worksheet in an Excel workbook stored in OneDrive. Use this action when you need to rename a worksheet, change its position (tab order), or modify its visibility state. At least one of name, position, or visibility must be provided in the request. The worksheet is identified by its ID or display name within the specified workbook.
Uploads a file to a OneDrive or SharePoint folder using chunked uploads, creating missing destination folders as needed. Name conflicts can be renamed, rejected, or replaced.
Updates the value, formula, or format of a specific cell in an Excel workbook stored in OneDrive. Use this action when you need to write data to a single cell at a specific row and column position. The row and column parameters are 0-indexed (row 0 is the first row, column 0 is column A).
The OneDrive integration connects your Dench AI CRM directly to OneDrive, so agents can read and act on your OneDrive data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.
103 actions are available for agents to invoke on your behalf, and 9 triggers can start a Dench automation the moment something changes in OneDrive. Every call runs through OneDrive's own authorization, scoped to the account you connect.
Sign in to your Dench workspace and open Integrations.
Find OneDrive and click Connect — you'll authorize access through OneDrive's own sign-in flow. No API keys or code required.
Ask an agent to use OneDrive in chat, or wire a OneDrive trigger into an automation.
Manage or disconnect the connection any time from workspace settings.
The Dench OneDrive integration connects your AI CRM to OneDrive, so AI agents can work with your OneDrive data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.
The OneDrive integration currently exposes 103 actions, including Add Workbook Worksheet, Calculate Workbook, Check In Drive Item, Checkout Drive Item, Clear Workbook Range, and Close Workbook Session. Agents invoke them on your behalf from chat or from automations.
Yes. The OneDrive integration provides 9 triggers — such as File Updated, Item Moved or Renamed, New Version Created, and OneDrive File Created Trigger — that can start a Dench automation the moment something happens in OneDrive.
No. You connect OneDrive from your Dench workspace using OneDrive's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.
Connections are authorized through OneDrive's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the OneDrive connection from your workspace settings at any time.