Upload a file to SharePoint.

  • Least privileged Microsoft Graph permission to access the action via application: Files.ReadWrite.All.
  • Higher privileged Microsoft Graph permissions to access the action via application: Sites.ReadWrite.All.

External Documentation

To learn more, visit the SharePoint documentation.

Parameters

ParameterDescription
Drive IDThe ID of the drive. Can be obtained via the List Drives For Site action.
File IdentifierThe identifier of the file to upload. You can create a file identifier using the Set File Variable action.
File NameThe name of the file, including its extension.

Note: Make sure to include the correct file extension based on the file type (e.g., for a JPEG image, use the format {FileName}.jpeg).
Parent IDThe ID of the parent folder.

For Example: /FolderA ,/FolderA/FolderB.

Note: If no input is provided, the file will be uploaded to the root folder.
Site IDThe ID of the site. Can be obtained via the List Sites action.

Example Output

{
	"id": "0123456789abc",
	"name": "FileB.txt",
	"size": 35,
	"file": {}
}

Workflow Library Example

Upload File with Sharepoint and Send Results Via Email

Preview this Workflow on desktop