The Microsoft OneDrive spoke for Integration Hub does not list an action named Create File. Its action list in the Australia release runs to 35 entries. The closest action is Upload and Replace File, which takes files no larger than 4 MB, and the sections below cover the stand-in actions, the setup they need and the route for larger files.
What the spoke’s action list covers
The action list falls into seven groups, and the file management group is where file content moves.
| Group | Actions | Count |
|---|---|---|
| Drive management | Look up Drive Info | 1 |
| Folder management | Move File Or Folder Item, Create Folder, Update File Or Folder Name, Delete File Or Folder Item | 4 |
| File management | Check In File, Check Out File, copy actions in both directions, metadata look-ups, version actions, Upload and Replace File | 15 |
| Search | Search Files or Folder Items | 1 |
| Document sharing | Add Collaborator, Look up Collaborators, Remove Collaborator | 3 |
| Permission management | Add Permission, Create Sharing Link, Delete Permission, Look up Permissions, Update Permission | 5 |
| Webhook management | Subscribe Webhook, Unsubscribe Webhook, Get SyncToken for Subscription, Look up Subscriptions, Renew Subscription, Sync Changes | 6 |
Create Folder creates a folder in Microsoft OneDrive. The file management group holds Upload and Replace File, the spoke’s upload action, alongside the copy and version actions around it.
Upload and Replace File, the nearest match
Upload and Replace File uploads an updated version of a file that already sits in OneDrive, or replaces that file with a new one. In the Australia release, the file size cannot exceed 4 MB. Files above that size need the route described in the section on larger files below.
Check Out File and Check In File matter when a flow writes to a file that people also edit. While a drive item is checked out, other users cannot edit it or see its changes until it is checked back in. Check In File sends a sharing invitation so that others can reach the item again.
The action’s description is built around an existing file. A flow that needs a file with a new name can confirm the result with Look up File or Folder Item Info By Path, which returns the metadata for an item at a given path. From release 2.8.2 (May 2026), both look-up actions return newer output fields, so the outputs a flow can read depend on the installed version.
Stand-in actions for moving content into OneDrive
Copy Attachment to OneDrive and Copy Attachment To OneDrive Using Path both copy an attachment record in ServiceNow to OneDrive. These suit a file that already exists as an attachment on a record.
The reverse direction is covered by Copy OneDrive File to Attachment, its path variant, and Copy OneDrive File Version To Attachment, which copies a file in OneDrive to an attachment in a record. A flow that needs to move content both ways can combine the two groups.
Create Folder makes the destination folder first, and Look up Items returns the drive items at a path or under a source ID. Search Files or Folder Items searches by metadata such as item name when the path is not known.
The core Copy Attachment action in Workflow Studio is a different tool. In the Brazil release, it copies an attachment from the Attachments table to a target record inside ServiceNow. It has no outputs and does not reach OneDrive.
Setting up the spoke before any file action runs
The actions use the OneDrive connection and credential alias, so the setup below has to be complete before any file action can run. The ServiceNow side needs an Integration Hub subscription, the spoke activated, the admin role, and the IntegrationHub Action Step – REST plugin and the IntegrationHub Runtime plugin. Some of these plugins are licensable features and require an appropriate license if used outside the spoke implementation. The Microsoft side needs an Azure account, a custom app registered in Azure, and OneDrive tenant administrator credentials.
The setup then runs in three stages.
- Register the Azure app. Give it a name, a supported account type and a redirect URI built from your own instance’s address, with your instance name in place of the placeholder. Copy the Application ID, because it becomes the Client ID. Under Certificates and secrets, add a client secret, and copy it straight away, since the secret is displayed in plain text for a short time. Under API permissions, open the Microsoft Graph tile and select the permissions the spoke needs.
- Register OneDrive as an OAuth provider. In ServiceNow, go to System OAuth, then Application Registry, choose New, and select the option to connect to a third-party OAuth provider. Enter a name, the Client ID, the Client Secret and the Authorization Code grant type. A multi-tenant app uses the Microsoft common authorization endpoint. A single-tenant app uses the same endpoint with the Directory (tenant) ID from Azure in place of the common segment. Add each scope as a row in the OAuth Entity Scopes related list, then save, which validates the credentials.
- Create the connection. Go to IntegrationHub, then Connections and Credentials, then OneDrive, and select Create New Connection and Credential from the related links. The connection name, connection URL and OAuth entity name fill in automatically. Enter the Client ID, Client Secret and redirect URL, then select Create and Get OAuth Token.
The scopes must match on both sides. Six Graph scopes must be registered for the connection: Calendars.ReadWrite, Calendars.ReadWrite.Shared, email, Files.Read, Files.Read.All and offline_access. The same six belong in the OAuth Entity Scopes list. A single-tenant setup also needs the OneDrive alias selected in the Tenant record. The REST calls behind the actions can run on the instance or, optionally, through a MID Server set on the connection record.
Change notifications run separately from the actions
Bi-directional webhooks are a separate setup, and they work without the spoke actions. A registry record in OneDrive Webhook Registries holds the default subscription path. Saving the record auto-populates a secret key, and a CallBack URL button then displays the callback URL to copy.
The OneDrive Webhook Routing Policy module holds conditions on OneDrive events. When they are met, the policy triggers an associated subflow. To build one, copy a default subflow such as Sync Changes, customise the copy, publish it, and point a new routing policy at it. Sync Changes tracks changes to a drive and its children over time.
Files above 4 MB
The 4 MB ceiling applies to Upload and Replace File, so larger content needs one of two other routes.
The first is the separate Document Services Framework for Microsoft OneDrive spoke. Its Upload Large File subflows attach a file to OneDrive, and in the Australia release their maximum file size is 60 MB. The samples come in V1 and V2 sets, and a sample must be copied into a new application scope before it is customised. The V2 set supports Microsoft SharePoint sites, and its subflows work only with documents attached through Create Document V2 or Connect Document V2.
The second is the file management AI agent. Its tool table, in the Australia release, lists Upload Large File with Create Upload Session, Check Upload Session Status and Delete Upload Session. Version 2.2.0 of the spoke, from August 2022, added actions under those upload-session names, yet they are absent from the spoke’s current action list. A flow designer should confirm which list a step draws from before building a large-file process on it. The agent’s allowed user role is snc_internal, and third-party and AI specialist access are both off by default.
Release history for file handling
Recent changes that affect file work, by version, are listed below.
| Version | Date | Change |
|---|---|---|
| 2.2.0 | August 2022 | Added upload-session and large-file actions; fixed handling of 4xx and 5xx responses |
| 2.4.0 | November 2024 | Added a retry policy that honours the Retry-After header to the default connection and credential alias; enabled for all actions except three |
| 2.8.2 | May 2026 | Added newer output fields to both look-up actions; supports file names ending in a dash |
| 2.9.0 | June 2026 | Streamlined ACL handling |
| 2.9.1 | August 2026 | Fixed query parameter token visibility and a timing-related weakness |
Version 2.9.1 is the newest entry in that history.
Frequently asked questions
Does the OneDrive spoke have a Create File action?
No action in its list carries that name. The Australia list has 35 actions. The nearest option is Upload and Replace File, and Create Folder makes a folder rather than a file.
What is the largest file Upload and Replace File accepts?
In the Australia release the limit is 4 MB. Larger files need the Document Services route, where the large-file subflows allow up to 60 MB.
What has to be in place before any OneDrive action runs?
An Integration Hub subscription, the spoke activated, the REST action step and runtime plugins, a custom Azure app, and an OAuth registry, connection and token in ServiceNow.
How can a flow check that a file landed where it should?
Look up File or Folder Item Info By Path returns the metadata for an item at a given path, and Look up Items lists the items at a path.
Does the spoke retry failed calls?
From release 2.4.0, the default connection and credential alias carries a retry policy that honours the Retry-After header. It is enabled for all actions except three.
Does checking out a file stop other people editing it?
Yes. While a drive item is checked out, other users cannot edit it or see its changes until it is checked back in.