Tailflow
Skip to article
Browse documentation

Google Docs · Action

Find and replace text

Finds every occurrence of some text in a document, in every tab, and replaces it.

When to use it

Marking a line in a running log as settled once a later event confirms it.

At a glance

IntegrationGoogle Docs
Credits1
ConnectionGoogle Docs, by signing in

Settings

documentRequiredAccepts event fields
Document. The document's id or link, usually from a step above. Only documents made by Google Docs or Google Drive steps can be reached.
findRequiredAccepts event fields
Find.
replaceOptionalAccepts event fields
Replace with. Leave blank to remove the text.
match_case
Match capitals. On or off.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.docs_replace_text_1.id }} — the action’s key, then which one it is if you use more than one of the same kind.

id
The document's id.
link
The address that opens the document in a browser.
replaced
How many occurrences were replaced. Zero when the text was not found.

Good to know

  • Text that is not found is not a failure. The step succeeds and replaced is 0.
  • The text is matched as written, not as a pattern.
  • Only documents made by Google Docs or Google Drive steps can be reached. A document you made yourself in Google Docs cannot be opened by a flow.