Skip to main content
Skip table of contents

Mode - Trigger Report Refresh

Overview

Manually trigger a refresh of a report in Mode. This Blueprint will kick off the refresh. It will create and store the generated run ID to `shipyard-artifacts/mode-blueprints/variables/report_run_id.pickle`

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.
Wait For CompletionMODE_WAITBooleanTRUE-Enable if you want this vessel to wait for the report to refresh before exiting

YAML

Below is the YAML template

YAML

source:
  template: Mode - Trigger Report Refresh
  inputs:
    MODE_TOKEN_ID:
    MODE_TOKEN_PASSWORD:
    MODE_WORKSPACE_NAME:
    MODE_REPORT_ID:
    MODE_WAIT: 'TRUE'
  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.