Overview
This blueprint can be used to move or rename one or multiple files in Microsoft SharePoint.
The match type selected greatly affects how this Blueprint works.
Variables
|
Name |
Reference |
Type |
Required |
Default |
Options |
Description |
|---|---|---|---|---|---|---|
|
Client ID |
SHAREPOINT_CLIENT_ID |
Password |
✅ |
- |
- |
The Client ID of the app created in Azure |
|
Client Secret |
SHAREPOINT_CLIENT_SECRET |
Password |
✅ |
- |
- |
The secret value of the app created in Azure |
|
Tenant |
SHAREPOINT_TENANT |
Alphanumeric |
✅ |
- |
- |
The ID of the tenant associated with the app |
|
Site Name |
SHAREPOINT_SITE_NAME |
Alphanumeric |
✅ |
- |
- |
The name of the SharePoint Site |
|
Workflows File Match Type |
SHAREPOINT_FILE_MATCH_TYPE |
Select |
➖ |
exact_match |
Exact Match: exact_match
|
The match type used to identify files to load |
|
Source File |
SHAREPOINT_SRC_FILE |
Alphanumeric |
➖ |
- |
- |
The name of the source file in SharePoint |
|
Source Folder Name |
SHAREPOINT_SRC_FOLDER_NAME |
Alphanumeric |
➖ |
- |
- |
The optional folder of where the source file is located. If omitted, the files will be loaded to the root directory |
|
Target Folder Name |
SHAREPOINT_TARGET_FOLDER_NAME |
Alphanumeric |
➖ |
- |
- |
The name of the folder to move the source file to |
|
Target File Name |
SHAREPOINT_TARGET_FILE_NAME |
Alphanumeric |
➖ |
- |
- |
The name of the new file once moved/renamed. If omitted, the original name will be retained |
YAML
Below is the YAML template
source:
template: Microsoft 365 SharePoint - Move or Rename Files in SharePoint
inputs:
SHAREPOINT_CLIENT_ID:
SHAREPOINT_CLIENT_SECRET:
SHAREPOINT_TENANT:
SHAREPOINT_SITE_NAME:
SHAREPOINT_FILE_MATCH_TYPE: exact_match
SHAREPOINT_SRC_FILE:
SHAREPOINT_SRC_FOLDER_NAME:
SHAREPOINT_TARGET_FOLDER_NAME:
SHAREPOINT_TARGET_FILE_NAME:
type: TEMPLATE
guardrails:
retry_count: 1
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- 180
- 181
- 182
- 183
- 184
- 200
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 249