Skip to main content

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​

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.
FolderFileNoFolder to save into; the run's temporary folder when empty.
File nameStringNoOnly the attachment with this name; all when empty.
OverwriteBooleanNofalseReplace files of the same name.

Outputs​

OutputTypeWhat it is
filesListThe saved files.