SharePoint Online - Upload File
Overview
The SharePoint Online - Upload File Snap

- This is a Write-type Snap.
Works in Ultra Tasks
Prerequisites
- Valid SharePoint Online tenant and associated site.
- Valid Azure application with all the required API permissions.
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input |
This Snap has exactly one binary input view. A binary stream containing the data to be uploaded to the SharePoint Online site. |
|
| Output |
This Snap has exactly one document output view. A document containing the metadata of the uploaded file. |
|
| Learn more about Error handling. | ||
Snap settings
| Field/Field set | Description |
|---|---|
Label*
String |
Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: SharePoint Online - Upload File Example: SharePoint Online - Upload File |
Site*
String/Expression |
Specify the name of a site which contains the list of document library to be used in the subsequent Snap settings. Default value: N/A Example: MySite |
Custom Site Path
Checkbox |
Enable this option if your site URL contains a custom path that deviates from the default site URL. Default site path always has the prefix ‘site/’ before the sitename, a custom site can contain the prefix ‘team/’ or it can have no prefix. Default value: Deselected |
Document Library*
String/Expression |
Specify the drive representing the top-level container for a file system, such as OneDrive or SharePoint document libraries. This field will be populated dynamically from different sites from the suggestion dropdown list. You can either choose a document library from the suggestion drop-down list or enter the entity name manually. Note: If you enable the Site property as an expression, then the document library is not suggested, resulting in an exception.
Default value: N/A Example: Shared Documents |
Target path*
String/Expression |
Specify the absolute path of the directory where the file needs to be created. Note: If you enable the Site property as an expression, then the document library is not suggested, resulting in an exception.
Default value: N/A Example: test.file.pdf |
Conflict Behavior
String/Expression |
Select the appropriate action to be taken in case the specified name already exists. Available options are:
Default value: replace Example: fail |
| Connection details | Use this field set to specify connection properties to the SharePoint Online APIs. |
Connection timeout*
Integer |
Specify the connection timeout duration in seconds. Default value: 30 Example: 40 |
Number of retries*
Integer |
Specify the maximum number of reconnections in case of a connection failure or timeout. Default value: 3 Example: 5 |
Retry interval (seconds)*
Integer |
Specify the time interval in seconds between connection attempts. Default value: 10 Example: 11 |
Snap execution
Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
|
Troubleshooting
| Error | Cause | Resolution |
|---|---|---|
| The specified listName/itemID was not found | Entered listname/itemID might not be available in the site. | Click the suggestion dropdown button and select the listName or enter the existing list name manually or verify the itemID is entered existence. |
| Forbidden exception | Either user or app doesn’t have sufficient permissions to read the metadata for the document library. | Ensure to provide the desired permissions both at the user and application level. |
Additional information
For more information on how to upload an item in SharePoint Online, refer to the driveItem: put content graph API.