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
Name | Reference | Type | Required | Default | Options | Description |
---|---|---|---|---|---|---|
Google Doc URL | GOOGLEDOCS_DOC_URL | Alphanumeric | ✅ | - | - | The full URL to the Google Doc to interact with. |
Source Filename | GOOGLEDOCS_SOURCE_FILENAME | Alphanumeric | ✅ | - | - | The name of the local file to upload to Google Docs. |
Source Folder Name | GOOGLEDOCS_SOURCE_FOLDER_NAME | Alphanumeric | ➖ | - | - | The name of the folder containing the file to upload. |
Upload Type | GOOGLEDOCS_UPLOAD_TYPE | Select | ✅ | append | Append: 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
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