Export File
google_drive.export_file
ActionFiles & storageconnection required
Calls Drive files.export, capped by MANTLE_BINARY_MAX_BYTES.
Export a Google Doc, Sheet or Slide to PDF/Office/CSV as a file blob.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Drive
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- token_uri
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
file_id The Drive file id. | string | Yes | — | — | — |
mime_type Export format, e.g. application/pdf or application/vnd.openxmlformats-officedocument.wordprocessingml.document. | string | No | application/pdf | one of "application/pdf", "text/plain", "text/csv", "text/html", "text/markdown", "application/rtf", "application/zip", "image/png", "image/jpeg", "image/svg+xml", "application/epub+zip", "application/vnd.oasis.opendocument.text", "application/vnd.oasis.opendocument.spreadsheet", "application/vnd.oasis.opendocument.presentation", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.presentationml.presentation" | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"mime_type": "application/pdf"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
file_id | string | — |
export_mime_type What the document was rendered as. | string | — |
file_content The file, base64-encoded. | string | — |
content_encoding | string | base64 |
filename | string | app-main.zip |
content_type | string | application/zip |
size Raw size in bytes (before base64). | number | — |
{
"content_encoding": "base64",
"content_type": "application/zip",
"export_mime_type": "",
"file_content": "",
"file_id": "",
"filename": "app-main.zip",
"ok": false,
"size": 0
}Related Google Drive nodes
See Export File run in a workflow.
In a technical demo we add the Google Drive connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.