{"id":105775,"date":"2021-04-21T08:55:42","date_gmt":"2021-04-20T23:55:42","guid":{"rendered":"https:\/\/support.questetra.com\/?p=105775"},"modified":"2023-08-17T16:45:29","modified_gmt":"2023-08-17T07:45:29","slug":"google-docs-document-replace-all-2021","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-2021\/","title":{"rendered":"Google Docs #Document: Replace All"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><div class=\"su-box su-box-style-soft\" id=\"\" style=\"border-color:#cc66cc;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#ff99ff;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\">Google Docs: Document, Replace All<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> 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.<\/div><\/div>\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<ul class=\"fa-ul\">\n<li><span class=\"fa-li\"><i class=\"fal fa-badge-check fa-lg\"><\/i><\/span> U: Select HTTP_Authz Setting<span style=\"color:#990000;\"> *<\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> A1: Set FILE-ID in Drive<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B1: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C1: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B2: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C2: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B3: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C3: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B4: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C4: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B5: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C5: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B6: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C6: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B7: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C7: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B8: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C8: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B9: Set Substring for FindWhat<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C9: Set Substring for ReplaceWith<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<\/ul>\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 (click to open)<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS Script (engine type: 2)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\nmain();\nfunction main(){ \n\n\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst strAuthzSetting     = configs.get      ( &quot;AuthzConfU&quot; );   \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz Setting: &quot; + strAuthzSetting );\nconst strInputfileId      = configs.get      ( &quot;StrConfA1&quot; );    \/\/\/ REQUIRED\n  if( strInputfileId    === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {A1: FileID} is empty \\n&quot; );\n  }\nconst strFindWhat1        = configs.get      ( &quot;StrConfB1&quot; );    \/\/ NotRequired\nconst strReplaceWith1     = configs.get      ( &quot;StrConfC1&quot; );    \/\/ NotRequired\nconst strFindWhat2        = configs.get      ( &quot;StrConfB2&quot; );    \/\/ NotRequired\nconst strReplaceWith2     = configs.get      ( &quot;StrConfC2&quot; );    \/\/ NotRequired\nconst strFindWhat3        = configs.get      ( &quot;StrConfB3&quot; );    \/\/ NotRequired\nconst strReplaceWith3     = configs.get      ( &quot;StrConfC3&quot; );    \/\/ NotRequired\nconst strFindWhat4        = configs.get      ( &quot;StrConfB4&quot; );    \/\/ NotRequired\nconst strReplaceWith4     = configs.get      ( &quot;StrConfC4&quot; );    \/\/ NotRequired\nconst strFindWhat5        = configs.get      ( &quot;StrConfB5&quot; );    \/\/ NotRequired\nconst strReplaceWith5     = configs.get      ( &quot;StrConfC5&quot; );    \/\/ NotRequired\nconst strFindWhat6        = configs.get      ( &quot;StrConfB6&quot; );    \/\/ NotRequired\nconst strReplaceWith6     = configs.get      ( &quot;StrConfC6&quot; );    \/\/ NotRequired\nconst strFindWhat7        = configs.get      ( &quot;StrConfB7&quot; );    \/\/ NotRequired\nconst strReplaceWith7     = configs.get      ( &quot;StrConfC7&quot; );    \/\/ NotRequired\nconst strFindWhat8        = configs.get      ( &quot;StrConfB8&quot; );    \/\/ NotRequired\nconst strReplaceWith8     = configs.get      ( &quot;StrConfC8&quot; );    \/\/ NotRequired\nconst strFindWhat9        = configs.get      ( &quot;StrConfB9&quot; );    \/\/ NotRequired\nconst strReplaceWith9     = configs.get      ( &quot;StrConfC9&quot; );    \/\/ NotRequired\n\n\n\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (Nothing. Retrieved via Expression Language in Config Retrieving)\n\n\n\n\n\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\/\/\/ Replace All Text via Requests\n\/\/\/ Google Workspace for Developers &gt; Google Docs for Developers &gt; API v1\n\/\/\/ https:\/\/developers.google.com\/docs\/api\/reference\/rest\/v1\/documents\/batchUpdate\n\/\/\/ https:\/\/developers.google.com\/docs\/api\/reference\/rest\/v1\/documents\/request#ReplaceAllTextRequest\n\/\/ request1, prepare\nlet i = 0;\nlet request1Obj = {};\n    request1Obj.requests = [];\nif( strFindWhat1 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith1;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat1;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( strFindWhat2 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith2;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat2;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( strFindWhat3 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith3;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat3;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( strFindWhat4 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith4;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat4;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( strFindWhat5 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith5;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat5;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( strFindWhat6 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith6;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat6;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( strFindWhat7 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith7;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat7;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( strFindWhat8 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith8;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat8;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( strFindWhat9 !== &quot;&quot; ){\n    request1Obj.requests[i] = {};\n    request1Obj.requests[i].replaceAllText = {};\n    request1Obj.requests[i].replaceAllText.replaceText = strReplaceWith9;\n    request1Obj.requests[i].replaceAllText.containsText = {};\n    request1Obj.requests[i].replaceAllText.containsText.text = strFindWhat9;\n    request1Obj.requests[i].replaceAllText.containsText.matchCase = true;\n    \/\/ if change to &quot;false&quot;, the find criteria become case insensitive.\n    i++;\n}\nif( i === 0 ){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedError:&quot; + \n                   &quot; FindWhat String {B} not found \\n&quot; );\n}\nlet request1Uri = &quot;https:\/\/docs.googleapis.com\/v1\/documents\/&quot; + strInputfileId + &quot;:batchUpdate&quot;;\nlet request1    = httpClient.begin(); \/\/ HttpRequestWrapper\n    request1    = request1.authSetting( strAuthzSetting ); \/\/ with &quot;Authorization: Bearer XX&quot;\n    \/\/ https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024574471-R2300#HttpRequestWrapper\n    request1    = request1.body( JSON.stringify( request1Obj ), &quot;application\/json&quot; );\n\/\/ request1, try\nconst response1     = request1.post( request1Uri ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest1 Start: &quot; + request1Uri );\nconst response1Code = response1.getStatusCode() + &quot;&quot;;\nconst response1Body = response1.getResponseAsString() + &quot;&quot;;\nengine.log( &quot; AutomatedTask ApiResponse Status: &quot; + response1Code );\nif( response1Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response1Code + &quot;\\n&quot; + response1Body + &quot;\\n&quot; );\n}\n\/\/ response1, parse\n\/* engine.log( response1Body ); \/\/ debug\n{\n  &quot;replies&quot;: [\n    {\n      &quot;replaceAllText&quot;: {\n        &quot;occurrencesChanged&quot;: 1\n      }\n    }\n  ],\n  &quot;writeControl&quot;: {\n    &quot;requiredRevisionId&quot;: &quot;ALm37BXbXm25CqcdhtXnbtCiMGCp9DM564YMvIznlpy75etxnogagBfmx-gwSaISrRhUHtynojSNHGsPzz9_eg&quot;\n  },\n  &quot;documentId&quot;: &quot;18sAt2ROXl15fNtAS2A-mbt9jqZXjJim85eZdlYbw-0g&quot;\n}\n*\/\nconst response1Obj = JSON.parse( response1Body );\nfor( let j = 0; j &lt; i; j++){\n  if( response1Obj.replies[j].replaceAllText.occurrencesChanged == undefined ){\n    engine.log( &quot; AutomatedTask ApiResponse: Occurrences Changed 0 &lt; &quot; +\n                request1Obj.requests[j].replaceAllText.containsText.text );\n  }else{\n    engine.log( &quot; AutomatedTask ApiResponse: Occurrences Changed &quot; +\n                response1Obj.replies[j].replaceAllText.occurrencesChanged + &quot; &lt; &quot; +\n                request1Obj.requests[j].replaceAllText.containsText.text );\n  }\n}\n\n\n\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\n\/\/ (nothing)\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\n\/*\nNotes:\n- The task of rewriting the template file of the quotation and proposal is automated.\n- If the FindWhat string is blank, the replacement process will not be performed.\n- If the ReplaceWith string is blank, the found string will be erased.\n- The File ID can be obtained from the URI or the sharing settings screen.\nNotes-ja:\n- \u898b\u7a4d\u66f8\u3084\u63d0\u6848\u66f8\u306e\u96db\u5f62\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u308b\u696d\u52d9\u3001\u7b49\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002\n- \u63a2\u7d22\u6587\u5b57\u5217\u304c\u7a7a\u767d\u306e\u5834\u5408\u3001\u7f6e\u63db\u51e6\u7406\u306f\u884c\u308f\u308c\u307e\u305b\u3093\u3002\n- \u7f6e\u63db\u6587\u5b57\u5217\u304c\u7a7a\u767d\u306e\u5834\u5408\u3001\u63a2\u7d22\u3055\u308c\u305f\u6587\u5b57\u5217\u90e8\u306f\u6d88\u53bb\u3055\u308c\u307e\u3059\u3002\n- File ID \u306f URI \u3084\u5171\u6709\u8a2d\u5b9a\u753b\u9762\u7b49\u304b\u3089\u53d6\u5f97\u3057\u307e\u3059\u3002\n\nAPPENDIX-en\n- Can refer to the &quot;Process Log&quot; for the number of replacements.\n- The second replacement is searched for the document after the first replacement.\n- When replacing with a multi-line string, the line feed code is converted to a space.\n- How to set Config by EL expression (Workflow data reference method)\n    - https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272\n- Google Drive: File, Copy\n    - https:\/\/support.questetra.com\/addons\/google-drive-file-copy-2021\/\n- Google Drive: GFile, Export as PDF\n    - https:\/\/support.questetra.com\/addons\/google-drive-gfile-export-as-pdf-2021\/\n- Setting example of &quot;HTTP Authentication&quot; (OAuth2)\n    - Authorization Endpoint URL:\n        - https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&approval_prompt=force\n    - Token Endpoint URL:\n        - https:\/\/accounts.google.com\/o\/oauth2\/token\n    - Scope:\n        - https:\/\/www.googleapis.com\/auth\/drive\n        - https:\/\/www.googleapis.com\/auth\/documents\n    - Client ID, Consumer Secret:\n        - ( from https:\/\/console.developers.google.com\/ )\n        - Redirect URLs: https:\/\/s.questetra.net\/oauth2callback\nAPPENDIX-ja\n- &quot;\u30d7\u30ed\u30bb\u30b9\u30ed\u30b0&quot; \u306b\u3066\u3001\u63a2\u7d22\u6587\u5b57\u5217\u3054\u3068\u306e\u7f6e\u63db\u4ef6\u6570\u3092\u53c2\u7167\u53ef\u80fd\u3067\u3059\u3002\n- 2\u756a\u76ee\u306e\u7f6e\u63db\u306f\u30011\u756a\u76ee\u7f6e\u63db\u306e\u5b9f\u884c\u5f8c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u63a2\u7d22\u3055\u308c\u307e\u3059\u3002\n- \u8907\u6570\u884c\u6587\u5b57\u5217\u3067\u7f6e\u63db\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001\u6539\u884c\u30b3\u30fc\u30c9\u304c\u30b9\u30da\u30fc\u30b9\u306b\u5909\u63db\u3055\u308c\u305f\u3046\u3048\u633f\u5165\u3055\u308c\u307e\u3059\u3002\n- EL\u5f0f\u306b\u3088\u308bConfig\u8a2d\u5b9a\u65b9\u6cd5\uff08Workflow\u30c7\u30fc\u30bf\u53c2\u7167\u65b9\u6cd5\uff09\n    - https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272\n- Google \u30c9\u30e9\u30a4\u30d6: \u30d5\u30a1\u30a4\u30eb, \u30b3\u30d4\u30fc\n    - https:\/\/support.questetra.com\/ja\/addons\/google-drive-file-copy-2021\/\n- Google \u30c9\u30e9\u30a4\u30d6: G\u30d5\u30a1\u30a4\u30eb, PDF\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\n    - https:\/\/support.questetra.com\/ja\/addons\/google-drive-gfile-export-as-pdf-2021\/\n- &quot;HTTP\u8a8d\u8a3c&quot;\uff08OAuth2\uff09\u306e\u8a2d\u5b9a\u4f8b\n    - Authorization Endpoint URL:\n        - https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&approval_prompt=force\n    - Token Endpoint URL:\n        - https:\/\/accounts.google.com\/o\/oauth2\/token\n    - Scope:\n        - https:\/\/www.googleapis.com\/auth\/drive\n        - https:\/\/www.googleapis.com\/auth\/documents\n    - Client ID, Consumer Secret:\n        - ( from https:\/\/console.developers.google.com\/ )\n        - Redirect URLs: https:\/\/s.questetra.net\/oauth2callback\n*\/\n\n<\/code><\/pre><\/div>\n\n\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image alignright\"><a href=\"#\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACuklEQVRYR8WXT2jTcBTHvy+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=\n\" alt=\"\"\/><\/a><\/figure>\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\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1ZM8IdQ5LnAGfttVOkFLUVWfDlVdhP05M\/view?usp=drivesdk\" target=\"_blank\">Google-Docs-Document-Replace-All-2021.xml<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1oL66XyXWkBEcwf7t0enLmVgbjIP15g8a\/view?usp=sharing\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1oL66XyXWkBEcwf7t0enLmVgbjIP15g8a\/view?usp=sharing\">Google-Docs-Document-Replace-All-2023.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-08-15 (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>for &#8220;GraalJS standard (engine-type 3)&#8221; on v15.0 or above<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-right has-small-font-size wp-block-paragraph\">2021-04-18 (C) Questetra, Inc. (MIT License)<br><a href=\"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-2021\/\">https:\/\/support.questetra.com\/addons\/google-docs-document-replace-all-2021\/<\/a><br><i class=\"fal fa-info-circle\"><\/i> The Addon-import feature is available with <span style=\"color:#4a86e8\" class=\"has-inline-color\"><strong>Professional<\/strong><\/span> edition.<\/p>\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-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The task of rewriting template files for quotations and proposals can be automated.<\/li>\n\n\n\n<li>If the FindWhat string is blank, the replacement process will not be performed.<\/li>\n\n\n\n<li>If the ReplaceWith string is blank, the found string will be erased.<\/li>\n\n\n\n<li>The File ID can be obtained from the URI or the sharing settings screen.<\/li>\n<\/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-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-execution-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"105778\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-2021\/attachment\/google-docs-document-replace-all-2021-execution-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-execution-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" 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-2021-execution-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-execution-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-execution-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"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.\" class=\"wp-image-105778\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-execution-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-execution-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-execution-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-execution-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default q-box\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-config-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"630\" data-attachment-id=\"105781\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-2021\/attachment\/google-docs-document-replace-all-2021-config-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-config-en.png?fit=1157%2C799&amp;ssl=1\" data-orig-size=\"1157,799\" 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-2021-config-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-config-en.png?fit=912%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-config-en-912x630.png?resize=912%2C630&#038;ssl=1\" alt=\"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.\" class=\"wp-image-105781\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-config-en.png?resize=912%2C630&amp;ssl=1 912w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-config-en.png?resize=456%2C315&amp;ssl=1 456w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-config-en.png?resize=768%2C530&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-config-en.png?w=1157&amp;ssl=1 1157w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-book\"><\/i> Appendix<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can refer to the Process Log to see the number of replacements per search string.<\/li>\n\n\n\n<li>The second replacement is searched for in the document after the first replacement.<\/li>\n\n\n\n<li>When replacing with a multi-line string, the line feed code is converted to a space.<\/li>\n\n\n\n<li>How to set Config using EL expressions (Workflow data reference method)\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272\" rel=\"nofollow\">https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Google Drive: File, Copy\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/addons\/google-drive-file-copy-2021\/\">https:\/\/support.questetra.com\/addons\/google-drive-file-copy-2021\/<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Google Drive: GFile, Export as PDF\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/addons\/google-drive-gfile-export-as-pdf-2021\/\">https:\/\/support.questetra.com\/addons\/google-drive-gfile-export-as-pdf-2021\/<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Setting example of &#8220;HTTP Authentication&#8221; (OAuth2)\n<ul class=\"wp-block-list\">\n<li>Authorization Endpoint URL:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&#038;approval_prompt=force\" rel=\"nofollow\">https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&#038;approval_prompt=force<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Token Endpoint URL:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/accounts.google.com\/o\/oauth2\/token\" rel=\"nofollow\">https:\/\/accounts.google.com\/o\/oauth2\/token<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Scope:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.googleapis.com\/auth\/drive\" rel=\"nofollow\">https:\/\/www.googleapis.com\/auth\/drive<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.googleapis.com\/auth\/documents\" rel=\"nofollow\">https:\/\/www.googleapis.com\/auth\/documents<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Client ID, Consumer Secret:\n<ul class=\"wp-block-list\">\n<li>( from <a href=\"https:\/\/console.developers.google.com\/\" rel=\"nofollow\">https:\/\/console.developers.google.com\/<\/a> )<\/li>\n\n\n\n<li>Redirect URLs: <a href=\"https:\/\/s.questetra.net\/oauth2callback\" rel=\"nofollow\">https:\/\/s.questetra.net\/oauth2callback<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Uy2ETZvAQl\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/google-drive-file-copy-2021\/\">Google Drive #File: Copy<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Google Drive #File: Copy&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/google-drive-file-copy-2021\/embed\/#?secret=w2LIXAEg5W#?secret=Uy2ETZvAQl\" data-secret=\"Uy2ETZvAQl\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"MAu2EmMba5\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/google-drive-gfile-export-as-pdf-2021\/\">Google Drive #GFile: Export as PDF<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Google Drive #GFile: Export as PDF&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/google-drive-gfile-export-as-pdf-2021\/embed\/#?secret=oLA089eMSB#?secret=MAu2EmMba5\" data-secret=\"MAu2EmMba5\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":2,"featured_media":105776,"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":"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.","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":[3167,2334,3162],"class_list":["post-105775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-authsetting","tag-google-docs-api","tag-google-workspace"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"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","uagb_featured_image_src":{"full":["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",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["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",1200,675,true],"2048x2048":["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",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-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\/2021\/04\/Google-Docs-Document-Replace-All-2021-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["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",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":3,"uagb_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.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-rw3","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":79829,"url":"https:\/\/support.questetra.com\/en\/addons\/google-docs-document-replace-all-text\/","url_meta":{"origin":105775,"position":0},"title":"Google Docs: Document; Replace All Text","author":"IMAMURA, Genichi","date":"2019-09-25","format":false,"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.","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-Docs-Document-Replace-All-Text-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-Docs-Document-Replace-All-Text-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, 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&resize=525%2C300 1.5x, 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&resize=700%2C400 2x, 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&resize=1050%2C600 3x"},"classes":[]},{"id":87903,"url":"https:\/\/support.questetra.com\/en\/addons\/string-replace-all\/","url_meta":{"origin":105775,"position":1},"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":79064,"url":"https:\/\/support.questetra.com\/en\/addons\/google-slides-page-replace-all-string\/","url_meta":{"origin":105775,"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":106646,"url":"https:\/\/support.questetra.com\/en\/addons\/google-slides-page-replace-strings-2021\/","url_meta":{"origin":105775,"position":3},"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":79841,"url":"https:\/\/support.questetra.com\/ja\/addons\/google-docs-document-replace-all-text\/","url_meta":{"origin":105775,"position":4},"title":"Google \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8: \u6587\u66f8; \u30c6\u30ad\u30b9\u30c8\u306e\u5168\u7f6e\u63db","author":"IMAMURA, Genichi","date":"2019-09-25","format":false,"excerpt":"\u691c\u7d22\u30c6\u30ad\u30b9\u30c8\u3092\u7f6e\u63db\u30c6\u30ad\u30b9\u30c8\u306b\u5168\u7f6e\u63db\u3057\u307e\u3059\u3002\u6587\u5b57\u5217\u306e\u691c\u7d22\u3067\u306f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u304c\u533a\u5225\u3055\u308c\u307e\u3059\u3002\u7f6e\u304d\u63db\u3048\u4ef6\u6570\u306f\u30ed\u30b0\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u591a\u304f\u306e\u5834\u5408\u3001\u4e0a\u6d41\u306b\u81ea\u52d5\u5de5\u7a0b\u300eGoogle \u30c9\u30e9\u30a4\u30d6: \u30d5\u30a1\u30a4\u30eb; \u30b3\u30d4\u30fc\u300f\u304c\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-ja.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-Docs-Document-Replace-All-Text-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Google-Docs-Document-Replace-All-Text-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":149046,"url":"https:\/\/support.questetra.com\/en\/addons\/string-replace-all-2023\/","url_meta":{"origin":105775,"position":5},"title":"String: Replace All","author":"IMAMURA, Genichi","date":"2023-08-04","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":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/105775","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=105775"}],"version-history":[{"count":9,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/105775\/revisions"}],"predecessor-version":[{"id":149691,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/105775\/revisions\/149691"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/105776"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=105775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=105775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=105775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}