Add SharePoint item attachment
Attach a file, e.g. a picture or a PDF, to a SharePoint list item (needs a SharePoint site session).
Command in the Microsoft 365 toolkit · id ooa.microsoft365/add_attachment · 5 inputs (3 required), no outputs
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. | |
| File | File | Yes | The file to attach. | |
| File name | String | No | The attachment's name; the file's own name when empty. |