{"id":79829,"date":"2019-09-25T17:54:08","date_gmt":"2019-09-25T08:54:08","guid":{"rendered":"https:\/\/support.questetra.com\/?p=79829"},"modified":"2022-06-01T15:23:23","modified_gmt":"2022-06-01T06:23:23","slug":"google-docs-document-replace-all-text","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-text\/","title":{"rendered":"Google Docs: Document; Replace All Text"},"content":{"rendered":"<div class=\"su-note\"  style=\"border-color:#e5dab2;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFF4CC;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">\n<h3><i class=\"fal fa-exclamation-circle\"><\/i> PAGE UPDATED<\/h3>\n<div style=\"text-align: center;\"><i class=\"fal fa-truck fa-lg\"><\/i> <a href=\"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-2021\/\">https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-2021\/<\/a><\/div>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"68\" data-attachment-id=\"89186\" data-permalink=\"https:\/\/support.questetra.com\/en\/maintenance\/maintenance-20251117\/attachment\/professional-banner-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?fit=1200%2C68&amp;ssl=1\" data-orig-size=\"1200,68\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"professional-banner-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?fit=1024%2C58&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?resize=1200%2C68&#038;ssl=1\" alt=\"\" class=\"wp-image-89186\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?resize=600%2C34&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?resize=1024%2C58&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?resize=768%2C44&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#003e04;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#267137;color:#ffffff;border-top-left-radius:0px;border-top-right-radius:0px\">Google Docs: Document; Replace All Text<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n\n\n\n<p class=\"wp-block-paragraph\">Replaces all instances of text matching the specified string with replace text. The search is case sensitive. The number of replacements is output as a log. In many cases, the automated step &#8220;Google Drive: File; Copy&#8221; is placed upstream.<\/p>\n\n\n<\/div><\/div>\n\n\n\n<p class=\"has-text-align-right wp-block-paragraph\">2019-09-25 (C) Questetra, Inc. (MIT License)<br>\n<a href=\"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-text\/\">https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-text\/<\/a><\/p>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1\" data-anchor=\"configs\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Configs<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<ul class=\"fa-ul\">\n<li>A: Select OAuth2 Config Name (at [OAuth 2.0 Setting])<span style=\"color:#990000;\"> *<\/span><\/li>\n<li> B: Set Document-ID of Docs File (44 chars in File URI)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"> <sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li> C: Set SUBSTRING to Search (e.g. &#8220;XXXX-XX-XX&#8221;)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"> <sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li> D: Set SUBSTRING to Replace<span style=\"color:#000099;\"> <sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<\/ul>\n\n\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1 su-spoiler-closed\" data-anchor=\"script\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Script<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ (c) 2019, Questetra, Inc. (the MIT License)\n\n\/\/\/\/ == OAuth2 Setting example ==\n\/\/ Authorization Endpoint URL:\n\/\/  \"https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&amp;approval_prompt=force\"\n\/\/ Token Endpoint URL:\n\/\/  \"https:\/\/accounts.google.com\/o\/oauth2\/token\"\n\/\/ Scope:\n\/\/  \"https:\/\/www.googleapis.com\/auth\/documents\"\n\/\/  If used with 'Google Drive: File; Copy', full permission may be appropriate.\n\/\/  \"https:\/\/www.googleapis.com\/auth\/drive\"\n\/\/ Client ID:\n\/\/  ( from https:\/\/console.developers.google.com\/ )\n\/\/ Consumer Secret:\n\/\/  ( from https:\/\/console.developers.google.com\/ )\n\/\/  *Redirect URLs: \"https:\/\/s.questetra.net\/oauth2callback\"\n\n\n\/\/\/\/\/\/\/\/ START \"main()\" \/\/\/\/\/\/\/\/\nmain();\nfunction main(){ \n\n\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst oauth2       = configs.get( \"conf_OAuth2\"  ) + \"\";\nconst documentId   = configs.get( \"conf_DocumentId\") + \"\";\nconst substring    = configs.get( \"conf_Substring\" ) + \"\";\nconst newSubstring = configs.get( \"conf_NewSubstring\" ) + \"\";\n\/\/ 'java.lang.String' (String Obj) to javascript primitive 'string'\n\nengine.log( \" AutomatedTask Config: Document ID: \" + documentId );\nengine.log( \" AutomatedTask Config: Substring: \" + substring );\nengine.log( \" AutomatedTask Config: NewSubstring: \" + newSubstring );\n\n\n\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (nothing)\n\n\n\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\/\/\/ obtain OAuth2 Access Token\nconst token   = httpClient.getOAuth2Token( oauth2 );\n\n\/\/\/ post ReplaceAllTextRequest\nlet requestObj = {};\n    requestObj.requests = &#091;];\n    requestObj.requests&#091;0] = {};\n    requestObj.requests&#091;0].replaceAllText = {};\n    requestObj.requests&#091;0].replaceAllText.replaceText = newSubstring;\n    requestObj.requests&#091;0].replaceAllText.containsText = {};\n    requestObj.requests&#091;0].replaceAllText.containsText.text = substring;\n    requestObj.requests&#091;0].replaceAllText.containsText.matchCase = true;\n    \/\/ if \"false\" : the search is case insensitive.\nlet apiRequest = httpClient.begin(); \/\/ HttpRequestWrapper\napiRequest = apiRequest.bearer( token );\napiRequest = apiRequest.body( JSON.stringify( requestObj ), \"application\/json\" );\nconst apiUri = \"https:\/\/docs.googleapis.com\/v1\/documents\/\" +\n                documentId + \":batchUpdate\";\nengine.log( \" AutomatedTask Trying: POST \" + apiUri );\nconst response = apiRequest.post( apiUri );\nconst responseCode = response.getStatusCode() + \"\";\nengine.log( \" AutomatedTask ApiResponse: Status \" + responseCode );\nif( responseCode !== \"200\"){\n  throw new Error( \"\\n AutomatedTask UnexpectedResponseError: \" +\n         responseCode + \"\\n\" + response.getResponseAsString() + \"\\n\" );\n}\nconst responseStr = response.getResponseAsString() + \"\";\nconst responseObj = JSON.parse( responseStr );\nif( responseObj.replies&#091;0].replaceAllText.occurrencesChanged == undefined ){\n  engine.log( \" AutomatedTask ApiResponse: Occurrences Changed 0\" );\n}else{\n  engine.log( \" AutomatedTask ApiResponse: Occurrences Changed \" +\n             responseObj.replies&#091;0].replaceAllText.occurrencesChanged );\n}\n\n\n\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\n\/\/ (nothing)\n\n} \/\/\/\/\/\/\/\/ END \"main()\" \/\/\/\/\/\/\/\/<\/code><\/pre>\n\n\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img decoding=\"async\" src=\"data:image;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACuklEQVRYR8WXT2jTcBTHvy+p3Way\nyZSJeHHin6tO0XZ48qoX8SJOvehlEwRFQRCr04giCgoDt4PuoDJBRBQPepvgJVW2efSgzItDEC26\n1nbNnydJ\/5isSZN2HcmxzXvvk\/fn+34\/QsQPhY2\/c3huZczoOgjQXgL6AO4FqLtkzxmAvjIwA\/Ck\nLv55PjW8\/m8Y34EAuy5n1wkmzhNoEEB7GKcACgweMwXc\/HBF\/l7Ppi5AMpUbBOM2CFLIwO7XGDkQ\nzqmKNOZn7wuQvJS\/BzaHmgq82IiEUfVqx0kvX54AiYvZCSI63JLgZSfM\/CR9TR6oYVv8Q0u\/PEQm\nXBmwaw6MLra7cCCOfdtjEAXvnGgG8Pqjjhsvi2GSNuTsiSqA1e2iQZ+9Gm7iVDs29vhEBzCXYTAD\nU7NGMAQjZ4i8uTIdVYBEKnuHQKe9PiEIYPaHiZE3Gs7uj4eCYPDdtCKfsWLZAJbIrDBW\/fSb8zAA\nAyMF9G8Rw0IUNPH3GkusbIBEKnuUQI\/8ChgEkC+W0j9fYEhxwrYNAp6lddyf1Hx7gsHH0or8uAyQ\ne0DA8WYBvOxeTeu4\/sK\/KRkYTyvSCRsgmcpNw9Z37ycoA80AAJhRFWlHGSD76\/9iqXW3PACcURV5\ndSUDXG+AnQDzecb7LyaKhtukp5PQ1ytWtSKoBFY8VZGoYQDTBBZ0gK3BdzyCQGiLASWPQIMA4UvQ\nugy4SxC6CVsH4GjCRCr8GDpLQFRKu+Ch0kElcI1hI0LkzEBcJOzeJKCzo3arBwM4hGipUtyEDril\nuCzHTS+jRgFqlpHloN46vnWkDXu2itURC1r6Cxow\/lbDw3ceu8BvHZcl2fNAsraLcKg\/hm458BBt\ns336ZuKpqvtxeh9IKm9HeiSrQER6KF2WTDR6LK9CRHkxqUBEejVztnFkl9OgmV\/q\/\/8AP0ejMGDh\nAswAAAAASUVORK5CYII=\" alt=\"\"\/><\/figure><\/div>\n\n\n<div class=\"su-divider su-divider-style-dashed\" style=\"margin:30px 0;border-width:8px;border-color:#009900\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-cloud-download-alt\"><\/i> Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" aria-label=\"Google-Docs-Document-Replace-All-Text.xml (opens in a new tab)\" href=\"https:\/\/drive.google.com\/a\/questetra.com\/file\/d\/1GHo9lqgD8DPYKJukV9BlKufND99xgEwv\/view?usp=sharing\" target=\"_blank\">Google-Docs-Document-Replace-All-Text.xml<\/a><\/li><li><a href=\"https:\/\/drive.google.com\/a\/questetra.com\/file\/d\/1DLt5uxenddI-efQIA3LHpBeD-dH2CDqU\/view?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Google-Docs-Document-Replace-All-Text-in-Bulk.xml (opens in a new tab)\">Google-Docs-Document-Replace-All-Text-in-Bulk.xml<\/a><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-images\"><\/i> Capture<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"84005\" data-permalink=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/onedrive-file-upload\/attachment\/setting-service-task-pdf-generation-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/01\/setting-service-task-pdf-generation-en.png?fit=959%2C833&amp;ssl=1\" data-orig-size=\"959,833\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"setting-service-task-pdf-generation-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/01\/setting-service-task-pdf-generation-en.png?fit=725%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/gdrive-replace-text.png?ssl=1\" alt=\"\" class=\"wp-image-84005\" style=\"border:10px solid #aaaaaa; padding:5px; margin:5px;\"><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/08\/Google-Docs-Document-Replace-All-Text-capture-en.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"540\" data-attachment-id=\"93252\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-text\/attachment\/google-docs-document-replace-all-text-capture-en-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/08\/Google-Docs-Document-Replace-All-Text-capture-en.png?fit=960%2C540&amp;ssl=1\" data-orig-size=\"960,540\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Google-Docs-Document-Replace-All-Text-capture-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/08\/Google-Docs-Document-Replace-All-Text-capture-en.png?fit=960%2C540&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/08\/Google-Docs-Document-Replace-All-Text-capture-en.png?resize=960%2C540&#038;ssl=1\" alt=\"\" class=\"wp-image-93252\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/08\/Google-Docs-Document-Replace-All-Text-capture-en.png?w=960&amp;ssl=1 960w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/08\/Google-Docs-Document-Replace-All-Text-capture-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/08\/Google-Docs-Document-Replace-All-Text-capture-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>For example, replace all &#8220;XXXX-XX-XX&#8221; existing in Contract Template with &#8220;2019-09-25&#8221;.<\/li><li>In many cases, the automated step &#8220;<a rel=\"noreferrer noopener\" aria-label=\"Google Drive: File; Copy (opens in a new tab)\" href=\"https:\/\/support.questetra.com\/en\/addons\/google-drive-file-copy\/\" target=\"_blank\">Google Drive: File; Copy<\/a>&#8221; is placed upstream.<\/li><li>If you want to set multiple replacement patterns at once, use &#8220;Replace All Text in Bulk&#8221;.<\/li><li>[Google Blog] <a href=\"https:\/\/gsuiteupdates.googleblog.com\/2019\/02\/new-google-docs-api.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Manage workflows and automate processes with the new Google Docs API (opens in a new tab)\">Manage workflows and automate processes with the new Google Docs API<\/a> (2019-02-11)<\/li><li>[Google Blog] <a rel=\"noreferrer noopener\" aria-label=\"Process paperwork pronto with the new Google Docs API (opens in a new tab)\" href=\"https:\/\/cloud.google.com\/blog\/products\/g-suite\/process-paperwork-pronto-with-the-new-google-docs-api\" target=\"_blank\">Process paperwork pronto with the new Google Docs API<\/a><\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/support.questetra.com\/en\/addons\/google-drive-file-copy\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Google Drive: Copy File(opens in a new tab)\">Google Drive: Copy File<\/a><\/li><li><a href=\"https:\/\/support.questetra.com\/en\/addons\/google-drive-gfile-export-as-pdf\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Google Drive: GFile; Export as PDF(opens in a new tab)\">Google Drive: GFile; Export as PDF\n<\/a><\/li><li><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/intermediate-error-catch-event-boundary-type\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Intermediate Error Catch Event (Boundary Type)(opens in a new tab)\">Intermediate Error Catch Event (Boundary Type)<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Replaces all instances of text matching the specified string with replace text. The search is case sensitive. The number of replacements is output as a log. In many cases, the automated step &#8220;Google Drive: File; Copy&#8221; is placed upstream.<\/p>\n","protected":false},"author":2,"featured_media":79833,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[],"faq_section":[],"class_list":["post-79829","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons"],"jetpack_publicize_connections":[],"uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":1,"uagb_excerpt":"Replaces all instances of text matching the specified string with replace text. The search is case sensitive. The number of replacements is output as a log. In many cases, the automated step \"Google Drive: File; Copy\" is placed upstream.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-kLz","jetpack-related-posts":[{"id":87903,"url":"https:\/\/support.questetra.com\/en\/addons\/string-replace-all\/","url_meta":{"origin":79829,"position":0},"title":"String, Replace All","author":"IMAMURA, Genichi","date":"2021-02-17","format":false,"excerpt":"Replaces all the search strings by the replacement string. All matches are case sensitive. For example, it is possible to completely replace the string \"XXXX-XX-XX\" in the template text with \"2020-05-11\".","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"String: Replace All","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/String-Replace-All-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/String-Replace-All-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/String-Replace-All-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/String-Replace-All-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/05\/String-Replace-All-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":105775,"url":"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-2021\/","url_meta":{"origin":79829,"position":1},"title":"Google Docs #Document: Replace All","author":"IMAMURA, Genichi","date":"2021-04-21","format":false,"excerpt":"Replaces all instances of text matching the FindWhat string with the ReplaceWith string in a case-sensitive way. It is also possible to replace multiple replacement patterns at once. If you are using a template file, you will often need to duplicate and replace the file in the upstream step.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Google Docs: Document, Replace All","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":79064,"url":"https:\/\/support.questetra.com\/en\/addons\/google-slides-page-replace-all-string\/","url_meta":{"origin":79829,"position":2},"title":"Google Slides: Page; Replace All Strings","author":"IMAMURA, Genichi","date":"2019-09-04","format":false,"excerpt":"Replaces all instances of text matching the specified string with replace text. The search is case sensitive.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Slides-Page-Replace-All-String-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Slides-Page-Replace-All-String-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Slides-Page-Replace-All-String-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Slides-Page-Replace-All-String-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Slides-Page-Replace-All-String-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":192897,"url":"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-2026\/","url_meta":{"origin":79829,"position":3},"title":"Google Docs #Document: Replace All","author":"Hirotaka NISHI","date":"2026-08-07","format":false,"excerpt":"Replaces all instances of text matching FindWhat string with ReplaceWith string in a case-sensitive way. It is also possible to replace multiple replacement patterns at once. If to replace the template file, duplicate the file in the upstream step.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Google Docs: Document, Replace All","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":106646,"url":"https:\/\/support.questetra.com\/en\/addons\/google-slides-page-replace-strings-2021\/","url_meta":{"origin":79829,"position":4},"title":"Google Slides #Page: Replace Strings","author":"IMAMURA, Genichi","date":"2021-05-20","format":false,"excerpt":"Replaces all instances of text matching the Search string with the Replace string. The search is case sensitive. For example, you can model a Workflow that automatically replaces the title in the template page.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Google Slides: Page, Replace Strings","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-slides-page-replace-strings-automation-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-slides-page-replace-strings-automation-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-slides-page-replace-strings-automation-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-slides-page-replace-strings-automation-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-slides-page-replace-strings-automation-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":170965,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/google-drive-pdf-export\/","url_meta":{"origin":79829,"position":5},"title":"Create a PDF File Using Google Drive","author":"komatsuquestetra","date":"2025-02-25","format":false,"excerpt":"Learn how to create PDF files using automated steps in Google Drive.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/01\/p2448415-1614-2-1.png?fit=1200%2C686&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/01\/p2448415-1614-2-1.png?fit=1200%2C686&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/01\/p2448415-1614-2-1.png?fit=1200%2C686&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/01\/p2448415-1614-2-1.png?fit=1200%2C686&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/01\/p2448415-1614-2-1.png?fit=1200%2C686&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-en.png?fit=1200%2C675&ssl=1","_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/79829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=79829"}],"version-history":[{"count":6,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/79829\/revisions"}],"predecessor-version":[{"id":105798,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/79829\/revisions\/105798"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/79833"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=79829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=79829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=79829"},{"taxonomy":"faq_section","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/faq_section?post=79829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}