Skip to main content
Skip table of contents

Microsoft 365 SharePoint - Download Files from SharePoint to Platform

Overview

This template can be used to download one or multiple files from SharePoint to Workflows.

The match type selected greatly affects how this Template 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

SharePoint File Name

SHAREPOINT_FILE_NAME

Alphanumeric

-

-

The name of the file to download from SharePoint

SharePoint Folder Name

SHAREPOINT_FOLDER_NAME

Alphanumeric

-

-

The optional name of the folder where the target file is located. If omitted, the file will be searched in the root directory

Shipyard Folder Name

SHAREPOINT_LOCAL_FOLDER_NAME

Alphanumeric

-

-

The optional name of the folder where the downloaded data should reside

Shipyard File Name

SHAREPOINT_LOCAL_FILE_NAME

Alphanumeric

-

-

The name of the file to save to Workflows. If omitted, the original name will be used

YAML

Below is the YAML template for this Template and can be used in the Fleet YAML Editor.

CODE
source:
  blueprint: Microsoft 365 SharePoint - Download Files from SharePoint to Shipyard
  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 ## REQUIRED
    SHAREPOINT_FILE_NAME: null ## REQUIRED
    SHAREPOINT_FOLDER_NAME: null
    SHAREPOINT_LOCAL_FOLDER_NAME: null
    SHAREPOINT_LOCAL_FILE_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.