Sharepoint icon

Sharepoint

Interact with Sharepoint

Overview

The node provides integration with Sharepoint to perform file-related operations. Specifically, the "Move File" operation allows users to move a file from one location to another within a Sharepoint site and document library. This is useful for organizing files, automating document workflows, or managing content structure programmatically.

Practical examples include:

  • Automatically moving uploaded files to an archive folder after processing.
  • Reorganizing documents based on metadata or workflow status.
  • Migrating files between folders as part of a batch operation.

Properties

Name Meaning
Site Name or ID Select or specify the Sharepoint site where the file resides.
Document Library Name or ID Select or specify the document library (drive) within the chosen site.
File Locator for the file to move; can be specified by path (e.g., /sites/test/Documents/test.txt) or by unique file ID.
Target Folder Destination folder locator where the file will be moved; can be specified by path (e.g., /sites/test/Documents/) or by ID.

Output

The node outputs JSON data representing the result of the move operation. This typically includes metadata about the moved file such as its new location, ID, name, and other relevant Sharepoint file properties.

If binary data were involved (not applicable here), it would represent file contents, but since this operation only moves files, output focuses on metadata.

Dependencies

  • Requires an API authentication token credential for Microsoft Sharepoint OAuth2.
  • The node depends on Sharepoint REST API endpoints to list sites, drives (document libraries), and perform file operations.
  • Proper permissions on the Sharepoint site and document libraries are necessary to move files.

Troubleshooting

  • Unsupported operation called: This error occurs if an invalid or unsupported operation is requested. Ensure the operation parameter is set correctly to "moveFile".
  • Permission errors: If the node fails due to permission issues, verify that the API credentials have sufficient rights to access and modify files in the specified site and document library.
  • Invalid file or folder locator: Using incorrect paths or IDs for the file or target folder may cause failures. Double-check the locators and ensure they exist.
  • API rate limits or connectivity issues: Network problems or API throttling can cause intermittent failures. Retry or check network connectivity.

Links and References

Discussion