Skip to main content
Skip table of contents

Microsoft OneDrive - Upload Files from Platform to OneDrive

Overview

This template can be used to upload one or multiple files to OneDrive from Platform.

Note: Any existing files with the same name will be overwritten.

The match type selected greatly affects how this Template works.

Variables

Name

Reference

Type

Required

Default

Options

Description

Client ID

ONEDRIVE_CLIENT_ID

Password

-

-

The Client ID of the app created in Azure

Client Secret

ONEDRIVE_CLIENT_SECRET

Password

-

-

The secret value of the app created in Azure

Tenant

ONEDRIVE_TENANT

Alphanumeric

-

-

The ID of the tenant associated with the app

User Email

ONEDRIVE_USER_EMAIL

Alphanumeric

-

-

The email of the user to impersonate. The user must belong to the organization/tenant

Shipyard File Match Type

ONEDRIVE_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

ONEDRIVE_LOCAL_FOLDER_NAME

Alphanumeric

-

-

The optional name of the folder where the data to load resides

Shipyard File Name

ONEDRIVE_LOCAL_FILE_NAME

Alphanumeric

-

-

The name of the file(s) to load to OneDrive

OneDrive File Name

ONEDRIVE_FILE_NAME

Alphanumeric

-

-

The name of the file once it is loaded to OneDrive. If omitted, the original file name will be used

OneDrive Folder Name

ONEDRIVE_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 Template and can be used in the Fleet YAML Editor.

CODE
source:
  blueprint: Microsoft OneDrive - Upload Files from Shipyard to OneDrive
  inputs:
    ONEDRIVE_CLIENT_ID: null  ## REQUIRED
    ONEDRIVE_CLIENT_SECRET: null ## REQUIRED
    ONEDRIVE_TENANT: null ## REQUIRED
    ONEDRIVE_USER_EMAIL: null ## REQUIRED
    ONEDRIVE_FILE_MATCH_TYPE: exact_match
    ONEDRIVE_LOCAL_FOLDER_NAME: null
    ONEDRIVE_LOCAL_FILE_NAME: null ## REQUIRED
    ONEDRIVE_FILE_NAME: null
    ONEDRIVE_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'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.