UploadDocument
Uploads a document to a SharePoint document library. Essential for adding new files to SharePoint for collaboration and storage.
Input
| Name | Type | Required | Description |
| RelativeUrl | String | True | The relative path of the folder where the file will be uploaded. This path is based on the base URL specified in the SharePoint connection properties. Examples: Root folder:Shared Documents Sub-folder:Shared Documents/MyFolder If the connection property points to a site collection, the relative URL corresponds to a path on the base site. If it points to a specific site, the relative URL is relative to that site. |
| InputFilePath | String | False | The local file path of the file to be uploaded to SharePoint. |
| FileName | String | True | The name of the file to be created in SharePoint, including its file extension (such as 'Report.pdf'). |
| Overwrite | String | False | A Boolean value specifying whether to overwrite an existing file with the same name. Set to 'true' to replace the file if it exists. |
| ChunkSize | Int | False | Defines the chunk size (in MB) for multipart uploads. This is useful for uploading large files in smaller parts. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the upload operation was successful. Returns 'true' for success and 'false' for failure. |
| Id | String | A unique identifier returned after successfully uploading the file. |