UploadDocument
Uploads a document to the SharePoint library.
Input
Name | Type | Accepts Input Streams | Description |
File | String | False | The path of the file to be added. |
FileContent | String | False | Base64 encoded content of the file to be added. If specified, the value of 'File' input will be ignored. |
Library | String | False | The URL of the directory you would like to upload file(s) to, relative to the base Url supplied in the provider's connection properties. For example: Root directory: Documents If you set the Url connection property to a site collection, the relative URL corresponds to a path on the base site. If the Url connection property points to a specific site, the relative URL is relative to the site supplied in the Url. |
Name | String | False | The name assigned to the new file. If uploading to the root directory of the site, supply only the filename. If uploading to a folder nested at some level inside the root directory, prepend the full parent subdirectory. For example: Root Directory: filename.txt Sub-directory:MyFolder/filename.txt |
Content | String | True | The content as InputStream to be uploaded when File is not specified. |
Result Set Columns
Name | Type | Description |
Success | Boolean | Indicates whether the operation was successful or not. |
Id | String | The internal Id of the document. |
DocumentId | String | The document Id. |
DocumentIdUrl | String | The URL of the document Id. |
FileRef | String | The file reference of the document. |