Overview
SharePoint Online – SharePoint document libraries: list folders, download & upload files (attended or unattended)
Available operations
15 operations available. Click any row to jump to its detail.
| Operation | Category | What it does |
|---|---|---|
| Create Folder | General | Create a folder inside another folder |
| Delete File or Folder | General | Delete a file or folder (a folder goes with everything in it, to the recycle bin) |
| Download File | General | Download a single file to the client machine |
| Download Folder | General | Download every file in a folder to a local directory |
| Get Item | General | Get a file/folder by its drive-item ID |
| Get Root Site | General | Get the tenant's root SharePoint site |
| Get Site | General | Get a SharePoint site by its Graph site ID |
| Get Site by Path | General | Resolve a site by hostname + path (host=acme.sharepoint.com, site_path=sites/Finance) |
| List Folder Children (by item ID) | General | List items inside a folder identified by its drive-item ID |
| List Document Libraries | General | List the document libraries (drives) on a site |
| List Folder | General | List the files and subfolders in a folder |
| Resolve Site URL | General | Resolve a full SharePoint site URL to its Graph site object |
| Search Sites | General | Search SharePoint sites by keyword (pass 'search') |
| Upload File | General | Upload a local file into a folder (handles large files via upload session) |
| Upload Folder | General | Upload every file in a local folder into a folder |
Operations
Create Folder
Create a folder inside another folder
| Parameter | Required | Type | Description |
|---|---|---|---|
Parent Folder Address folder_url | Yes | text | Full address of the folder to create it in. Paste it from the browser's address bar, or use Share → Copy link. e.g. https://acme.sharepoint.com/sites/Finance/Shared Documents/Invoices |
Folder Name name | Yes | text | Name of the new folder. |
On Conflict conflict_behavior | No | text | rename | replace | fail (default rename). |
Delete File or Folder
Delete a file or folder (a folder goes with everything in it, to the recycle bin)
| Parameter | Required | Type | Description |
|---|---|---|---|
File or Folder Address item_url | Yes | text | Full address of the file or folder. Paste it from the browser's address bar, or use Share → Copy link. e.g. https://acme.sharepoint.com/sites/Finance/Shared Documents/Invoices/Report.xlsx |
Already Gone Is Fine missing_ok | No | boolean | When the file or folder is not there, count the step as done. On by default. |
Download File
Download a single file to the client machine
| Parameter | Required | Type | Description |
|---|---|---|---|
File Address file_url | Yes | text | Full address of the file. Paste it from the browser's address bar, or use Share → Copy link. e.g. https://acme.sharepoint.com/sites/Finance/Shared Documents/Invoices/Report.xlsx |
Item ID item_id | No | text | Only for a loop over List Folder rows: put the row's id here and the folder's address in File Address. |
Save Path save_path | Yes | text | Local destination path on the client machine. |
Download Folder
Download every file in a folder to a local directory
| Parameter | Required | Type | Description |
|---|---|---|---|
Folder Address folder_url | Yes | text | Full address of the folder. Paste it from the browser's address bar, or use Share → Copy link. e.g. https://acme.sharepoint.com/sites/Finance/Shared Documents/Invoices |
Save Directory save_dir | Yes | text | Local directory to download the files into. |
Include Subfolders recursive | No | boolean | Descend into subfolders. Off by default. |
Get Item
Get a file/folder by its drive-item ID
| Parameter | Required | Type | Description |
|---|---|---|---|
Site Id site_id | Yes | text | |
Item Id item_id | Yes | text |
Get Root Site
Get the tenant's root SharePoint site
No input parameters.
Get Site
Get a SharePoint site by its Graph site ID
| Parameter | Required | Type | Description |
|---|---|---|---|
Site Id site_id | Yes | text |
Get Site by Path
Resolve a site by hostname + path (host=acme.sharepoint.com, site_path=sites/Finance)
| Parameter | Required | Type | Description |
|---|---|---|---|
Hostname hostname | Yes | text | |
Site Path site_path | Yes | text |
List Folder Children (by item ID)
List items inside a folder identified by its drive-item ID
| Parameter | Required | Type | Description |
|---|---|---|---|
Site Id site_id | Yes | text | |
Item Id item_id | Yes | text |
List Document Libraries
List the document libraries (drives) on a site
| Parameter | Required | Type | Description |
|---|---|---|---|
Site Id site_id | Yes | text |
List Folder
List the files and subfolders in a folder
| Parameter | Required | Type | Description |
|---|---|---|---|
Folder Address folder_url | Yes | text | Full address of the folder. Paste it from the browser's address bar, or use Share → Copy link. e.g. https://acme.sharepoint.com/sites/Finance/Shared Documents/Invoices |
Resolve Site URL
Resolve a full SharePoint site URL to its Graph site object
| Parameter | Required | Type | Description |
|---|---|---|---|
Site URL url | Yes | text | Full SharePoint site URL, e.g. https://acme.sharepoint.com/sites/Finance |
Search Sites
Search SharePoint sites by keyword (pass 'search')
No input parameters.
Upload File
Upload a local file into a folder (handles large files via upload session)
| Parameter | Required | Type | Description |
|---|---|---|---|
Local File local_path | Yes | text | Path to the local file to upload. |
Destination Folder Address folder_url | Yes | text | Full address of the folder to upload into. Paste it from the browser's address bar, or use Share → Copy link. e.g. https://acme.sharepoint.com/sites/Finance/Shared Documents/Invoices |
Destination Name dest_name | No | text | Override the uploaded file name (defaults to the local file name). |
On Conflict conflict_behavior | No | text | rename | replace | fail (default replace). |
Upload Folder
Upload every file in a local folder into a folder
| Parameter | Required | Type | Description |
|---|---|---|---|
Local Folder local_dir | Yes | text | Local folder whose files are uploaded. |
Destination Folder Address folder_url | Yes | text | Full address of the folder to upload into. Paste it from the browser's address bar, or use Share → Copy link. e.g. https://acme.sharepoint.com/sites/Finance/Shared Documents/Invoices |
Include Subfolders recursive | No | boolean | Upload subfolders too, making the same folders in SharePoint. Off by default. |
On Conflict conflict_behavior | No | text | What to do with a file that is already there: rename | replace | fail (default replace). |