--- title: Microsoft OneDrive Spoke description: Automate file and folder management and collaboration in Microsoft OneDrive. Adds Microsoft OneDrive data to your ServiceNow instance. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/integration-hub/onedrive-spoke.html release: australia product: Integration Hub classification: integration-hub topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 9 breadcrumb: [Integration Hub spokes, Build integrations, Integration Hub, Workflow Data Fabric] --- # Microsoft OneDrive Spoke Automate file and folder management and collaboration in Microsoft OneDrive. Adds Microsoft OneDrive data to your ServiceNow instance. ## Request apps on the Store Visit the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/home) to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the [ServiceNow Store version history release notes](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html). ## Integration Hub subscription This spoke requires an Integration Hub subscription. For more information, see [Legal schedules - IntegrationHub overview](https://www.servicenow.com/content/dam/servicenow-assets/public/en-us/doc-type/legal/snc-addendum-integrationhub.pdf). ## Spoke version Microsoft OneDrive spoke v2.9.1 is the latest version. For version history of the spoke, see [Microsoft OneDrive spoke release notes](https://www.servicenow.com/docs/r/store-release-notes/store-integrationhub-rn-onedrive-spoke.html). ## Spoke dependencies If you’re having trouble installing the app, ensure that these dependent plugins are installed: - ServiceNow IntegrationHub Action Step - REST \(com.glide.hub.action\_step.rest\) - ServiceNow IntegrationHub Runtime \(com.glide.hub.integration.runtime\) **Note:** Some of these plugins are licensable features and require an appropriate license if used outside the spoke implementation. For information on licenses, contact your account manager. ## Supported versions API version v1. ## Spoke flows The Microsoft OneDrive spoke gives sample flows in the draft state to demonstrate automating Microsoft OneDrive tasks. To customize a sample flow, copy it to a new application scope. Available sample flows include: |Flow|Description| |----|-----------| |Renew Subscriptions|Renews the expired subscriptions by updating the expiration date of the subscription.| ## Spoke subflows The Microsoft OneDrive spoke provides sample subflows in the draft state to demonstrate automating Microsoft OneDrive tasks. To customize a sample subflow, copy it to a new application scope. Available sample subflows include: |Subflow|Description| |-------|-----------| |Download New OneDrive File to ServiceNow|Downloads the new files uploaded in a resource to a ServiceNow record| |Subscribe to Webhook|Subscribes a listener application to receive notifications when data changes.| |Sync Changes|Tracks changes to a drive and its children over time.| |Get Document Latest URL|Gets the latest path of a file in OneDrive using the Sys ID of the document as an input. To use this subflow, a corresponding OneDrive connection and credential must be created, and a OneDrive authorization token should be available.| |Reconnect Document from Microsoft OneDrive|Gets the latest web URL and webdav URL of a document from the Microsoft OneDrive by using the Document Sys ID, Provider Detail Sys ID, Target Table Name, Target Table Sys ID, and the Document Name. To use this subflow, a corresponding OneDrive connection and credential must be created, and a OneDrive authorization token must be available.| ## Spoke actions The Microsoft OneDrive spoke provides actions to automate Microsoft OneDrive tasks when events occur in ServiceNow. Available actions include:
| Category | Action | Description |
|---|---|---|
| Drive Management | Look up Drive Info | Gets the metadata of a specific Microsoft OneDrive drive |
| Folder Management | Move File Or Folder Item | Moves a file or folder in Microsoft OneDrive to the target location. |
| Create Folder | Creates a folder in Microsoft OneDrive. | |
| Update File Or Folder Name | Updates the name for a file or folder item by ID. | |
| Delete File Or Folder Item | Deletes a file or folder from Microsoft OneDrive. | |
| File Management | Check In File | Checks in a drive item and sends a sharing invitation. When you check in a file, other users can access the checked-in file. |
| Check Out File | Checks out a drive item from OneDrive. When you check out a drive item, other users cannot edit the document. Other users also cannot see the changes that you made in the document until you check in the document. | |
| Copy OneDrive File to Attachment | Copies a file in Microsoft OneDrive to an attachment in a record in a ServiceNow record. | |
| Copy Attachment to OneDrive | Copies an attachment record in ServiceNow to Microsoft OneDrive | |
| Copy File Or Folder Item | Asynchronously creates a copy of a Microsoft OneDrive item \(including children\), under a new parent item or with a new name. | |
| Look up Items | Retrieves a list of drive items from a path or the source and source ID of a drive item. | |
| Look up File Or Folder Item Info By ID | Gets file metadata information from the file or folder ID in Microsoft OneDrive. | |
| Look up File Or Folder Item Info By Path | Gets file metadata information from the file path in Microsoft OneDrive. | |
| Copy Attachment To OneDrive Using Path | Copies an attachment record in ServiceNow to OneDrive. | |
| Copy OneDrive File To Attachment Using File Path | Copies a file using its path in OneDrive to an attachment in a record in ServiceNow. | |
| Copy OneDrive File Version To Attachment | Copies a file in OneDrive to an attachment in a record in ServiceNow. | |
| Delete Version of a File | Deletes the specified version of a file from OneDrive. | |
| Look up All Versions of a File | Retrieves all the versions a file in OneDrive. | |
| Restore File Version | Restores the specified file version and make this version the latest. | |
| Upload and Replace File | Uploads the updated version of an existing file or replaces the existing file with a new file. **Note:** The maximum size of the file cannot exceed 4 MB. | |
| Search Documents | Search Files or Folder Items | Searches the drive items \(files or folders\) based on metadata attributes such as the item name. |
| Document Sharing | Add Collaborator | Adds a collaborator and their permissions to a file or a folder. You can identify the collaborator by their Azure AD Alias or an Object ID. |
| Look up Collaborators | Lists all the collaborator details associated with a file or folder in Microsoft OneDrive. | |
| Remove Collaborator | Removes a collaborator from a file or folder in Microsoft OneDrive. | |
| Permission Management | Add Permission | Sends a sharing invitation for a drive item. A sharing invitation allows the recipients to access the drive item and optionally sends them an email with a sharing link. |
| Create Sharing Link | Creates a sharing link which allows you to share a drive item with other users. | |
| Delete Permission | Removes access to a drive item. | |
| Look up Permissions | Retrieves the sharing permissions of a drive item. | |
| Update Permission | Updates the expiration date of the subscription. | |
| Webhook Management | Subscribe Webhook | Creates a subscription that sends notifications when data changes. |
| Unsubscribe Webhook | Deletes the specified subscription ID. | |
| Get SyncToken for Subscription | Retrieves the latest sync token for the specified subscription ID. | |
| Look up Subscriptions | Retrieves the list of active subscriptions. | |
| Renew Subscription | Updates the expiration date of the subscription. | |
| Sync Changes | Tracks changes to a drive and drive's children over time. |