Skip to main content

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​

InputTypeRequiredDefaultWhat it is
SessionStringNosharepointA SharePoint site signed in to with Sign in to SharePoint site (also on premises); when given, access_token and site are not used (G3).
ListStringYesList id or display name.
Item IDStringYesItem id.
FileFileYesThe file to attach.
File nameStringNoThe attachment's name; the file's own name when empty.