Skip to main content
Skip table of contents

Mode - Download Report as File to Workflows

Overview

Download a report from Mode as a CSV, PDF, or JSON file. Typically used for pulling live data and sending the output to a messaging service, like Email or Slack.

Variables

NameReferenceTypeRequiredDefaultOptionsDescription
Token IDMODE_TOKEN_IDPasswordNone-The ID of the Token used to authenticate with Mode.
Token PasswordMODE_TOKEN_PASSWORDPasswordNone-The Token Password associated to the Token ID used to authenticate with Mode.
Workspace NameMODE_WORKSPACE_NAMEAlphanumericNone-Typically found in the URL structure as https://app.mode.com/ACCOUNT_NAME/
Report IDMODE_REPORT_IDAlphanumericNone-Numeric ID of the report you want to download, typically found at the end of the URL.
Run IDMODE_RUN_IDAlphanumericNone-The ID of the Run you want to download. If left blank, the most recent successful run for the report will be used.
Download AsMODE_FILE_TYPESelectcsv.csv: csv

.pdf: pdf

.json: json
File format to download the specified report as.
File NameMODE_DESTINATION_FILE_NAMEAlphanumericNone-File name that will be created for the card being downloaded. Include the extension.
Folder NameMODE_DESTINATION_FOLDER_NAMEAlphanumericNone-Folder where the file will be created. Leave blank to store in the current working directory

YAML

Below is the YAML template

YAML

source:
  template: Mode - Download Report as File to Workflows
  inputs:
    MODE_TOKEN_ID:
    MODE_TOKEN_PASSWORD:
    MODE_WORKSPACE_NAME:
    MODE_REPORT_ID:
    MODE_RUN_ID:
    MODE_FILE_TYPE: csv
    MODE_DESTINATION_FILE_NAME:
    MODE_DESTINATION_FOLDER_NAME:
  type: TEMPLATE
guardrails:
  retry_count: 1
  retry_wait: 0h0m0s
  runtime_cutoff: 1h0m0s
  exclude_exit_code_ranges:
    - 200
    - 203
    - 204

      
JavaScript errors detected

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

If this problem persists, please contact our support.