Google Docs: Replace Text¶
Plugin ID: eca_google_docs_replace_text
Available since: 1.0.0
Finds and replaces text patterns throughout a Google Docs document with match options.
Fields¶
Authentication Type— config key:auth_type-
Choose between API Client (OAuth2) or Service Account authentication.
Type:
select· Required: yes · Default:api_clientAllowed values:
api_client,service_account Authentication Source— config key:auth_from-
Choose whether to select authentication directly or use a token for dynamic selection.
Type:
select· Required: yes · Default:directAllowed values:
direct,token API Client— config key:api_client_id-
Search and select an API Client for OAuth2 authentication.
Type:
textfield· Required: no · Default: empty string Service Account— config key:service_account_id-
Search and select a Service Account for server-to-server authentication.
Type:
textfield· Required: no · Default: empty string Client ID from Token— config key:auth_client_from_token-
Token that resolves to a client ID (e.g., [user:field_google_client_id]). The token should contain just the client ID, not the auth type prefix.
This field supports tokens.Type:
textfield· Required: no · Default: empty string Document ID— config key:document_id-
The ID of the Google Docs document to modify.
This field supports tokens.Type:
textfield· Required: yes · Default: empty string Search Text— config key:search_text-
The text or pattern to search for in the document.
This field supports tokens.Type:
textfield· Required: yes · Default: empty string Replacement Text— config key:replacement_text-
The text to replace matches with. Supports basic HTML formatting (bold, italic, underline). Leave empty to delete matches.
This field supports tokens.Type:
textarea· Required: no · Default: empty string Match case— config key:match_case-
Perform case-sensitive matching.
Type:
checkbox· Required: no · Default:false Match whole words only— config key:match_whole_word-
Only match complete words, not partial matches.
Type:
checkbox· Required: no · Default:false Treat search text as regular expression— config key:use_regex-
Enable regex pattern matching. When enabled, search text will be treated as a regular expression pattern.
Type:
checkbox· Required: no · Default:false Document Token Name— config key:document_token_name-
Optional token name to store updated document details. Accessible as [token_name:document_id], [token_name:title], [token_name:content], [token_name:word_count], [token_name:replacement_count].
This field supports tokens.Type:
textfield· Required: no · Default: empty string