Download SharePoint item attachments
Save the files attached to a SharePoint list item, all or one, into a folder (needs a SharePoint site session).
Command in the Microsoft 365 toolkit · id ooa.microsoft365/download_attachments · 6 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | sharepoint | A SharePoint site signed in to with Sign in to SharePoint site (also on premises); when given, access_token and site are not used (G3). |
| List | String | Yes | List id or display name. | |
| Item ID | String | Yes | Item id. | |
| Folder | File | No | Folder to save into; the run's temporary folder when empty. | |
| File name | String | No | Only the attachment with this name; all when empty. | |
| Overwrite | Boolean | No | false | Replace files of the same name. |
Outputs
| Output | Type | What it is |
|---|---|---|
| files | List | The saved files. |