Skip to main content
googleDocs.replaceText replace matching text throughout selected document tabs.

Example

Inputs

Provide document, searchText, and replaceText. matchCase, tabIds, and revision controls are optional. A second argument with account selects a Google Account.

Output

Returns the document ID and resulting revision ID. Google replaces every match in the selected tabs.