> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Microsoft SharePoint connector

- Connector: `appmixer.microsoft.sharepoint`
- Version: 3.1.0
- Components: 16 (4 triggers, 12 actions)

The Microsoft SharePoint Online modules empower you to effectively monitor, retrieve, create, and update files within your Microsoft SharePoint Online environment.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/microsoft/sharepoint>
- Download package: <https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/download>

## Authentication

**Type:** OAuth 2

**Scopes:**

- `offline_access`
- `user.read`

## Triggers (4)

- [Deleted File](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.DeletedFile.md) (`appmixer.microsoft.sharepoint.DeletedFile`): This trigger fires every time there's a file deleted in the selected Drive. Additional scopes: `Files.Read.All`, `Sites.Read.All`, `Subscription.Read.All`.
- [New File](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.NewFile.md) (`appmixer.microsoft.sharepoint.NewFile`): This trigger fires every time there's a new file uploaded to the selected Drive. Additional scopes: `Files.Read.All`, `Sites.Read.All`, `Subscription.Read.All`.
- [Updated File](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.UpdatedFile.md) (`appmixer.microsoft.sharepoint.UpdatedFile`): This trigger fires every time there's a new file update to the selected Drive. Additional scopes: `Files.Read.All`, `Sites.Read.All`, `Subscription.Read.All`.
- [Watch Location](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.WatchLocation.md) (`appmixer.microsoft.sharepoint.WatchLocation`): This trigger fires every time there's a new file uploaded. Additional scopes: `Files.Read.All`, `Sites.Read.All`.

## Actions (12)

- [Create Folder](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.CreateFolder.md) (`appmixer.microsoft.sharepoint.CreateFolder`): Create a folder in Microsoft SharePoint. Additional scopes: `Files.ReadWrite.All`.
- [Delete File or Folder](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.DeleteFileOrFolder.md) (`appmixer.microsoft.sharepoint.DeleteFileOrFolder`): Delete a file or folder in Microsoft SharePoint by its ID. A folder is deleted together with its content; deleted items go to the site recycle bin. Additional scopes: `Files.ReadWrite.All`.
- [Download File](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.DownloadFile.md) (`appmixer.microsoft.sharepoint.DownloadFile`): Retrieve a file content from Microsoft SharePoint. Additional scopes: `Files.Read.All`, `Sites.Read.All`.
- [Find Files or Folders](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.FindFilesOrFolders.md) (`appmixer.microsoft.sharepoint.FindFilesOrFolders`): Find files or folders recursively in Microsoft SharePoint using query. Additional scopes: `Files.Read.All`, `Sites.Read.All`.
- [List Drives](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.ListDrives.md) (`appmixer.microsoft.sharepoint.ListDrives`): List the document libraries for a site. Additional scopes: `Files.Read.All`, `Sites.Read.All`.
- [List Files](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.ListFiles.md) (`appmixer.microsoft.sharepoint.ListFiles`): List files in Microsoft sharepoint. Additional scopes: `Files.Read.All`, `Sites.Read.All`.
- [List Sites](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.ListSites.md) (`appmixer.microsoft.sharepoint.ListSites`): List all available sites in an organization. Additional scopes: `Sites.Read.All`.
- [Move File Or Folder](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.MoveFileOrFolder.md) (`appmixer.microsoft.sharepoint.MoveFileOrFolder`): Move file or folder in Microsoft SharePoint. Additional scopes: `Files.ReadWrite.All`, `Sites.ReadWrite.All`.
- [Make Api Call](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.MakeApiCall.md) (`appmixer.microsoft.sharepoint.MakeApiCall`): Performs an arbitrary authorized API call. Additional scopes: `Files.Read.All`, `Files.ReadWrite.All`, `Sites.Read.All`, `Sites.ReadWrite.All`, `Subscription.Read.All`.
- [Update File or Folder](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.UpdateFileOrFolder.md) (`appmixer.microsoft.sharepoint.UpdateFileOrFolder`): Rename a file or folder in Microsoft SharePoint, optionally moving it to another folder of the same drive. Additional scopes: `Files.ReadWrite.All`.
- [Upload File](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.UploadFile.md) (`appmixer.microsoft.sharepoint.UploadFile`): Upload file into Microsoft SharePoint. Additional scopes: `Files.ReadWrite.All`.
- [Get File](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.GetFile.md) (`appmixer.microsoft.sharepoint.GetFile`): Retrieve a file from Microsoft SharePoint. Additional scopes: `Files.Read.All`, `Sites.Read.All`.

## Changelog

### 3.1.0

- (new component) Delete File or Folder - deletes a file or folder (with its content) by its ID.
- (new component) Update File or Folder - renames a file or folder by its ID, optionally moving it to another folder of the same drive.

### 3.0.1

- MakeApiCall: Request Headers and Query Parameters set in the Designer are now sent. They were silently dropped: the key-value field stores its rows as a JSON object string, which the component did not parse.

### 3.0.0

- BREAKING: MakeApiCall now declares every OAuth scope the SharePoint components use (added Files.Read.All, Sites.Read.All and Subscription.Read.All), per the MakeApiCall standard #1459 - SharePoint has no single most privileged scope. It can now call every endpoint the other SharePoint components can, including /subscriptions. Accounts connected before this version have to be reconnected before a flow with MakeApiCall starts.
- MakeApiCall: a path starting with '/' - the documented form - was sent to https://graph.microsoft.com/v1.0/https://graph.microsoft.com/..., and every request with a body failed with a TypeError inside onedrive-api; it now calls Microsoft Graph directly. A full URL is accepted only on https://graph.microsoft.com, so the account's token is never sent to another host.
- ListFiles, FindFilesOrFolders: the Items array output declared field names the data never contained (createdByUserId, parentReferencePath and the other flattened names) and typed Size as a string. Both components now publish the driveItem shape Microsoft Graph really returns, including the previously missing File, Folder, File System Info and Shared fields, with Size as a number. Every field path the previous output offered still resolves.
- ListFiles, FindFilesOrFolders: a missing Drive ID is reported as a clear error instead of a failed Graph call, and the output field list is now fetched without the connected account, so the variable picker fills in even before a Drive is selected.

### 2.3.0

- NewFile, UpdatedFile, DeletedFile, WatchLocation: the delta backlog is now processed page by page with the resume link persisted after every page, so a redelivered notification or a late failure no longer replays the whole backlog.
- NewFile, UpdatedFile, DeletedFile, WatchLocation: the component lock is taken with an explicit TTL and extended before every Graph call, and at most 20 delta pages are processed per run - the rest continues on the next tick.
- NewFile, UpdatedFile, DeletedFile: the webhook renewal in tick() no longer retries a contended lock 30 times, which used to throw 'LockError: Exceeded 30 attempts to lock the resource' every minute while a notification was being processed.
- WatchLocation: changes are emitted before the delta link is stored, so a crash replays a page instead of dropping it.
- NewFile, UpdatedFile: a file matching several File Types Restriction prefixes at once is now emitted once instead of once per matching prefix.
- All Microsoft Graph calls made through the legacy request helper now have a 30 s timeout so a hung call cannot hold a component lock indefinitely.
- NewFile, UpdatedFile: the 'created since' cutoff now advances to when the delta chain was started rather than when it was finished, so a file created while a backlog was being processed is no longer skipped. NewFile remembers the files it emitted recently so such a file does not fire twice; UpdatedFile also reports a file created after the cutoff once it has been modified.
- NewFile, UpdatedFile, DeletedFile, WatchLocation: an expired delta link (410 resyncRequired) is replaced by a fresh baseline, with the gap logged, instead of failing on every notification. A transient failure part-way through a backlog is retried on the next tick, and the subscription renewal in tick() runs even when that retry fails.
- Output examples for every output field of CreateFolder, DeletedFile, DownloadFile, GetFile, ListDrives, ListSites, MoveFileOrFolder, NewFile, UpdatedFile, UploadFile and WatchLocation; WatchLocation's output schema declared its nested fields as label/value pairs and its leaves without types.
- CreateFolder, GetFile, ListDrives: a missing required input is reported as a clear error instead of a failed Graph call.

### 2.2.0

- Added test() (Flow Test Mode) to the NewFile and UpdatedFile triggers.

### 2.1.0

- Added test() (Flow Test Mode) to the WatchLocation trigger.

### 2.0.0

- (breaking change) MakeApiCall: headers and parameters changed to key-value array inputs (body remains textarea/JSON to support nested structures) per standard #1459 — existing flows that used the old string/textarea headers or parameters must be updated

### 1.3.3

- Added output examples to component schemas.

### 1.3.2

- Reduced icon size for better performance.

### 1.3.1

- The authentication flow now displays an account selection screen.

### 1.3.0

- Implemented multiselect input normalization for fileTypesRestriction field in ListFiles, FindFilesOrFolders, NewFile, and UpdatedFile components.

### 1.2.3

- Connection can now be created with custom tenant. To see the option while creating the connection, in the Admin -> Connector Configuration add configuration 'appmixer:microsoft' and inside it, add item 'microsoftTenant' and set its value to true.

### 1.2.2

- FindFilesOrFolders - updated Item Type to File Type.

### 1.2.1

- DownloadFile - allows to select format in which to download the file. Possible options: pdf, html, txt.

### 1.2.0

- (new component) UpdatedFile - triggers when a file is updated in selected Drive or Drive folders (works recursively).
- (new component) DeletedFile - triggers when a file is deleted in selected Drive or Drive folders (works recursively).
- (new component) Find Files or Folders - Searches for files or folders in selected Drive using Query (works recursively).
- DownloadFile - added option to output file data.

### 1.1.3

- NewFile: triggers only for new files in the watched Drive, not folders.

### 1.1.2

- Fix for possible connection with empty label.

### 1.1.1

- NewFile: fix for tracking changes on a custom drive.

### 1.1.0

- ListFiles: The recursive flag has been added. When set to true, the component will list all files, including those within sub-folders.

### 1.0.3

- Updated the tooltips.

### 1.0.2

- Updated component inputs and removed file picker.

### 1.0.1

- Updated component name and file picker.

### 1.0.0

- Initial version
