Sharepoint icon

Sharepoint

Interact with Sharepoint

Overview

This node interacts with SharePoint to manage folders within a specified site and document library. Specifically, the "Create Folder" operation allows users to create a new folder at a given path inside a chosen SharePoint site and document library. It supports creating intermediate folders if they do not exist, similar to the mkdir -p command in Unix-like systems.

Common scenarios where this node is beneficial include:

  • Automating the organization of files by programmatically creating folder structures before uploading or moving files.
  • Setting up project-specific directories in SharePoint as part of an automated workflow.
  • Ensuring required folder hierarchies exist before performing further file operations.

Example: Automatically create a folder /Projects/2024/Reports inside a specific SharePoint document library before uploading monthly report files.

Properties

Name Meaning
Site Name or ID Select or specify the SharePoint site where the folder will be created.
Document Library Name or ID Select or specify the document library (drive) within the site where the folder will be created.
File Path The path of the folder to create within the selected document library.
Options Additional options for folder creation:
- Create Intermediate Folders Boolean flag indicating whether to create intermediate folders along the specified path if they don't exist (like mkdir -p).

Output

The node outputs JSON data representing the result of the folder creation operation. This typically includes metadata about the newly created folder such as its ID, name, path, and other relevant SharePoint folder properties.

No binary data output is involved in this operation.

Dependencies

  • Requires a valid API authentication token for Microsoft SharePoint (configured via OAuth2 credentials).
  • Depends on access to the specified SharePoint site and document library.
  • Uses internal helper methods to fetch available sites and document libraries dynamically for user selection.

Troubleshooting

  • Unsupported operation called: This error occurs if an invalid or unsupported operation is requested. Ensure the operation parameter is set to "createFolder" when intending to create folders.
  • Permission errors: If the node fails due to permission issues, verify that the API credentials have sufficient rights to create folders in the target SharePoint site and document library.
  • Invalid path errors: Providing an incorrect or malformed folder path may cause failures. Use valid SharePoint folder paths and consider enabling "Create Intermediate Folders" if nested folders are needed.
  • Missing required parameters: Ensure all required fields (Site, Document Library, File Path) are provided; otherwise, the node will not execute properly.

Links and References

Discussion