Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Document Services Framework for Microsoft OneDrive

Integrate the Document Services Framework with Microsoft OneDrive.

Request apps on the Store

Visit the ServiceNow Store 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.

Integration Hub subscription

This spoke requires an Integration Hub subscription. For more information, see Legal schedules - IntegrationHub overview.

Spoke version

Microsoft OneDrive spoke for Document Services Framework spoke v 1.2.2 is the latest version.

Supported versions

This spoke was built for Microsoft OneDrive Spoke for Document Services Framework V1.1, but might be compatible with later versions.

Key features

Microsoft OneDrive Spoke for Document Services Framework enables a flow designer to do the following:

  • Upload documents to Microsoft OneDrive
  • Collaborate
  • Manage versions
  • Download documents

Spoke dependencies

If you’re having trouble installing the app, ensure that these dependent plugins are installed:

  • Complex Object (com.glide.cobject)
  • IHUB Spoke Util Pack (com.snc.ihub_spoke_util_pack)
  • Multi Provider Document Services Framework (com.snc.multiprovider_documents)
  • Remote Directory Sync (com.snc.remote_directory_sync)
  • ServiceNow Flow Designer - Dynamic Inputs (com.glide.hub.dynamic_inputs)
  • 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 appropriate licenses if used outside the spoke implementation.

Spoke subflows

The Microsoft OneDrive Spoke for Document Services Framework provides sample subflows to demonstrate the automation of Document Services tasks. To customize a sample subflow, copy it to a new application scope. The following tables list the available sample subflows for V1 and V2.

Note: Only V2 subflows support the Microsoft SharePoint site.

SubflowDescription
Add Collaborator To GroupAdds the supplied CollaboratorID as the Member or Owner specified by Type.
Collaborate DocumentAssociates a document with a group or a user on Microsoft OneDrive.
Collaborate Document With Recipient TypeAssociates a document with a specified Recipient Type
Connect Document From OneDrive Using PathConnects the Microsoft OneDrive document.
Copy OneDrive Document VersionCopies the document with the specified version from Microsoft OneDrive to an attachment in the ServiceNow instance.
Create DocumentCopies the document to Microsoft OneDrive, creates a record in the Multi Provider Document \[mp\_document\] table, and adds a version in the Multi Provider Document Version \[mp\_document\_version\] table.
Create GroupCreates a group as specified in Microsoft OneDrive and updates the Multi Provider Permission Configuration \[mp\_permission\_configuration\] table.
Delete DocumentDeletes the document in Microsoft OneDrive and removes its corresponding records in the Multi Provider Document Version \[mp\_document\_version\] tables.
Delete Document VersionDeletes the specified version of the document in Microsoft OneDrive and the ServiceNow instance and deletes a record in the Multi Provider Document Version \[mp\_document\_version\] table.
Get All Document VersionRetrieves all document versions from Microsoft OneDrive and creates and updates records in the Multi Provider Document Version \[mp\_document\_version\] table.
Get Document from OneDriveCopies the document from Microsoft OneDrive to the specified document name. It also creates a record in the Multi Provider Document \[mp\_document\] table and in all document versions in the Multi Provider Document Version \[mp\_document\_version\] table.
Restore Document VersionRestore the document to the version in Microsoft OneDrive.
Sync Collaborators

Syncs all Microsoft Azure users into the Multi Provider Collaborators [mp_collaborators] table.If the user is deleted or updated, the user's record in the Multi Provider Collaborators [mp_collaborators] table is checked, if it’s present then the record is deleted or updated.

If the user is newly added, then it creates an entry in the Multi Provider Collaborators [mp_collaborators] table under Multi Provider Documents.

Note: The scheduled job with the name Sync Collaborators triggers the subflow for Sync Collaborators. You can choose from the available run a script option. The default option is On Demand. The job is run based on the set schedule and collaborators are synchronized accordingly. For more information, see Automatically run a script of your choosing.

Delete Collaborator RecordDeletes the specified collaborator record from the Multi Provider Collaborators \[mp\_collaborators\] table.
Update Document ContentUpdates the specified document with the provided attachment in Microsoft OneDrive that corresponds to the document ID. The attachment name should match the name of the document in Microsoft OneDrive.
Upload Large FileUploads an attachment to Microsoft OneDrive. The maximum size of the file can’t exceed 60 MB.
Get Latest URLGets the latest URL to a document in the Microsoft OneDrive.
Reconnect Document from Microsoft OneDriveReconnects to a document in Microsoft OneDrive. Note: Before using the subflow, ensure that the corresponding Microsoft OneDrive connection and credential are created and the Microsoft OneDrive authorization token is available.
SubflowDescription
Get Document Latest URL V2Gets the latest URL from Microsoft OneDrive for the referred document ID.
Update Document Content V2Updates the specified document with the provided attachment content in Microsoft OneDrive corresponding to the document ID from table Multi Provider Document sys\_id. The attachment name should match with the name of the document in Microsoft OneDrive.
Collaborate Document V2Associates a document with a specified recipient type.
Connect Document From OneDrive Using Path V2Connects the Microsoft OneDrive document that can also be tracked under Multi Provider Documents.
Copy OneDrive Document Version V2Copies the document with the specified version from Microsoft OneDrive to an attachment in the ServiceNow instance.
Create Document V2Copies the document to Microsoft OneDrive and creates a record in the Multi Provider Document \[mp\_document\] table and the Multi Provider Document Version \[mp\_document\_version\] table for Multi Provider Documents.
Delete Document V2Deletes the document in Microsoft OneDrive and removes its corresponding records in the Multi Provider Document \[mp\_document\] table and the Multi Provider Document Version \[mp\_document\_version\] tables.
Delete Document Version V2Deletes the particular version of the document in bothMicrosoft OneDrive and deletes a record in the Multi Provider Document Version \[mp\_document\_version\] table under Multi Provider Documents.
Get All Document Versions V2Retrieves all the document versions from Microsoft OneDrive and creates or updates records in the Multi Provider Document Version \[mp\_document\_version\] table under Multi Provider Documents. This subflow supports documents from different sources supported by Microsoft OneDrive.
Get Document from OneDrive V2Copies the document from Microsoft OneDrive to the specified document name. It also creates a record in the Multi Provider Document \[mp\_document\] table and all its versions in the Multi Provider Document Version \[mp\_document\_version\] table under Multi Provider Documents.
Reconnect Document from Microsoft OneDrive V2Reconnects to a document in the Microsoft OneDrive.Note: Before using the subflow, ensure that the corresponding Microsoft OneDrive connection and credential are created and the Microsoft OneDrive authorization token is available.
Restore Document Version V2Restores the document to the version provided in the Microsoft OneDrive.
Sync Collaborators V2Syncs all Microsoft Azure users into the Collaborators \[mp\_collaborators\] table under Multi Provider Documents.
Upload Large File V2Uploads an attachment to Microsoft OneDrive. The maximum size of the file can't exceed 60 MB.
Remove Document CollaborationRemoves collaboration on a Microsoft OneDrive document.
Update Document CollaborationUpdates collaboration on a Microsoft OneDrive document.

Note: The V2 subflows work only for documents attached to the platform using the Create Document V2 or Connect Document V2 subflows.

.

Spoke Actions

The Microsoft OneDrive Spoke for Document Services Framework provides sample actions to automate Document Services tasks when events occur in ServiceNow. The following table lists the available sample actions.

ActionDescription
Delete Collaborator RecordDeletes the specified collaborator record from the Multi Provider Collaborators \[mp\_collaborators\] table.
Delete documentDeletes the document record from the Multi Provider Document \[mp\_document\] table.
Delete document and versionsDeletes the specified document and all of its versions from the Multi Provider Document Version \[mp\_document\_version\] table.
Delete document versionDeletes specified versions of a document from the Multi Provider Document Version \[mp\_document\_version\] table.
Delete versions of documentDeletes all versions of a specified document.
Look up Target Record ExistenceChecks for the existence of a target record in the specified target table.
Look Up Incremental Files and Folders
  • Retrieves the list of files and folders under the given Folder ID for the selected Source and Source ID. If no source is selected, then it lists the contents of the root folder by default.
  • Retrieves the list of files and folders based on the given search query. Hierarchical search is also supported, allowing navigation through folder structures.

Note: Search results may vary due to Microsoft OneDrive 's indexing behavior.

Look up Sites Based On Query String StreamLists all the sites satisfying the specified query string.
Update Delta TokenUpdates the system property deltaToken with the specified delta token.

Connection and credential alias requirements

Integration Hub uses aliases to manage connection and credential information. Using an alias eliminates the need to configure multiple credentials and connection information profiles when using multiple environments. If the connection or credential information changes, you don't need to update any actions that use the connection. For more information, see Connections and Credentials.

For information about setting up the spoke, see Set up Microsoft OneDrive spoke.

Parent Topic:Microsoft OneDrive integration with Document Services