Skip to main content
Skip table of contents

Google Docs - Upload Content to Document

Overview

To use this template, ensure you have access to a Google account and the necessary permissions to edit the target Google Document. You will need the full URL of the Google Doc where you want to upload the content. Optionally, a service account credential can be used for authentication.

Variables

NameReferenceTypeRequiredDefaultOptionsDescription
Google Doc URLGOOGLEDOCS_DOC_URLAlphanumeric--The full URL to the Google Doc to interact with.
Source FilenameGOOGLEDOCS_SOURCE_FILENAMEAlphanumeric--The name of the local file to upload to Google Docs.
Source Folder NameGOOGLEDOCS_SOURCE_FOLDER_NAMEAlphanumeric--The name of the folder containing the file to upload.
Upload TypeGOOGLEDOCS_UPLOAD_TYPESelectappendAppend: append

Prepend: prepend

Replace: replace
The type of upload operation to perform. Prepend will add the content at the top of the document. Append to the end of the document. Replace will clear the document before inserting content

YAML

Below is the YAML template

YAML

source:
  template: Google Docs - Upload Content to Document
  inputs:
    GOOGLEDOCS_DOC_URL:
    GOOGLEDOCS_SOURCE_FILENAME:
    GOOGLEDOCS_SOURCE_FOLDER_NAME:
    GOOGLEDOCS_UPLOAD_TYPE: append
  type: TEMPLATE
guardrails:
  retry_count: 1
  retry_wait: 0h0m0s
  runtime_cutoff: 1h0m0s
  exclude_exit_code_ranges:
    - 10
    - 13
    - 14

      
JavaScript errors detected

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

If this problem persists, please contact our support.