Microsoft 365 SharePoint - Upload Files from Shipyard to SharePoint
Overviewβ
This blueprint can be used to upload one or multiple files to SharePoint from Shipyard.
Note: Any existing files with the same name will be overwritten.
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 |
Shipyard File Match Type | SHAREPOINT_FILE_MATCH_TYPE | Select | β | exact_match | Exact Match: exact_match Regex Match: regex_match | The match type used to identify files to load |
Shipyard Folder Name | SHAREPOINT_LOCAL_FOLDER_NAME | Alphanumeric | β | - | - | The optional name of the folder where the data to load resides |
Shipyard File Name | SHAREPOINT_LOCAL_FILE_NAME | Alphanumeric | β | - | - | The name of the file(s) to load to OneDrive |
SharePoint File Name | SHAREPOINT_FILE_NAME | Alphanumeric | β | - | - | The name of the file once it is loaded to SharePoint. If omitted, the original file name will be used |
SharePoint Folder Name | SHAREPOINT_FOLDER_NAME | Alphanumeric | β | - | - | The optional folder to load the file(s) to. If omitted, the files will be loaded to the root directory |
YAMLβ
Below is the YAML template for this Blueprint and can be used in the Fleet YAML Editor.
source:
blueprint: Microsoft 365 SharePoint - Upload Files from Shipyard to SharePoint
inputs:
SHAREPOINT_CLIENT_ID: null ## REQUIRED
SHAREPOINT_CLIENT_SECRET: null ## REQUIRED
SHAREPOINT_TENANT: null ## REQUIRED
SHAREPOINT_SITE_NAME: null ## REQUIRED
SHAREPOINT_FILE_MATCH_TYPE: exact_match
SHAREPOINT_LOCAL_FOLDER_NAME: null
SHAREPOINT_LOCAL_FILE_NAME: null ## REQUIRED
SHAREPOINT_FILE_NAME: null
SHAREPOINT_FOLDER_NAME: null
type: BLUEPRINT
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'