Outlook Groups icon

Outlook Groups

Interact with Microsoft Outlook Groups and SharePoint

SharePoint → Get File

AI-generated

Summary

Retrieve a single file from a specified SharePoint document library by its full path, optionally downloading its binary content along with metadata.

Inputs

  • SharePoint Site (required) — The SharePoint site where the document library is located.
  • Document Library (required) — The document library within the SharePoint site from which to retrieve the file.
  • File Path (required) — The full path to the file inside the document library, e.g., "Faktury/2025/01/invoice123.pdf".
  • Download File Content — Whether to download the file's binary content as well on the output item under the "data" property. If false, only file metadata is returned.

Output shape

a single item containing JSON metadata about the file and optionally binary content under 'binary.data' if 'Download File Content' is enabled.

If the specified path does not refer to a file (e.g., it is a folder), the operation throws an error advising to use 'Get Files from Folder'. When binary download is enabled, the file content is included as prepared binary data, otherwise only metadata is returned.

Examples

Example 1: Retrieving and downloading a PDF file from a SharePoint document library

Specify the SharePoint Site, Document Library, and the exact path to the PDF file. Set 'Download File Content' to true to get the file's binary content along with metadata.

Links

Discussion