Append Text
google_docs.append_text
ActionFiles & storageconnection required
Calls documents.batchUpdate insertText at endOfSegmentLocation, so a running log doc keeps growing however long it already is.
Append text to the end of an existing Google Doc.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Docs
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- token_uri
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 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 |
|---|---|---|---|---|---|
document_id Id of the document (the long segment in its /document/d/<id>/edit URL). | string | Yes | — | — | — |
text Text to append. Supports {{ }} expressions; end it with \n to start the next append on its own line. | string | Yes | — | — | — |
tab_id Optional tab to append to. Defaults to the document's first tab. | string | No | — | — | — |
Output
One shape.
appended
| Field | Type | Example |
|---|---|---|
ok | boolean | true |
document_id | string | — |
characters_appended | number | — |
tab_id The tab written to, when one was named. | string | — |
url Editor URL of the document. | string | — |
{
"characters_appended": 0,
"document_id": "",
"ok": true,
"tab_id": "",
"url": ""
}Related Google Docs nodes
See Append Text run in a workflow.
In a technical demo we add the Google Docs connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.