Sharepoint icon

Sharepoint

Interact with Sharepoint

Overview

This node interacts with SharePoint to retrieve items within a specified folder. It is useful for automating workflows that require listing files and subfolders stored in a particular SharePoint document library folder. Common scenarios include syncing files, processing documents in bulk, or integrating SharePoint content with other systems.

For example, you can use this node to:

  • Fetch all files from a project folder to trigger further processing.
  • List documents in a department's shared folder for reporting or backup.
  • Retrieve folder contents dynamically based on user input or other workflow data.

Properties

Name Meaning
Site Name or ID Select the SharePoint site by name or ID where the folder resides.
Document Library Name or ID Choose the document library (drive) within the selected site by name or ID.
File Path The path of the folder inside the document library whose items you want to list.
Options → Return All Boolean option to specify whether to return all items in the folder or limit the number of results.

Output

The node outputs an array of JSON objects representing the items found in the specified folder. Each item typically includes metadata such as file/folder name, ID, type, size, and other relevant SharePoint properties.

If binary data were involved (e.g., file contents), it would be included in a separate binary property, but this operation only lists items and does not output file binaries.

Dependencies

  • Requires an authenticated connection to SharePoint via OAuth2 credentials.
  • Needs access to the SharePoint site and document library specified.
  • The node depends on internal helper methods to fetch sites and document libraries dynamically for dropdown options.

Troubleshooting

  • Unsupported operation called: This error indicates an invalid or unsupported operation parameter was used. Ensure "Get Items in a Folder" is selected under the Folder resource.
  • Authentication errors: Verify that the OAuth2 credentials are correctly configured and have sufficient permissions to access the target SharePoint site and document library.
  • Empty results: Confirm the folder path is correct and that the folder contains items. Also, check if the site and library IDs are valid.
  • Load options fail: If site or library dropdowns do not populate, check network connectivity and credential validity.

Links and References

Discussion