{"id":7805,"date":"2023-06-03T22:52:22","date_gmt":"2023-06-03T13:52:22","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=7805"},"modified":"2023-06-03T22:52:23","modified_gmt":"2023-06-03T13:52:23","slug":"post-7805","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=7805","title":{"rendered":"\u3010GAS\u3011PropertiesService\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u53d6\u5f97\u30fb\u4fdd\u5b58\u65b9\u6cd5(\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u3082)"},"content":{"rendered":"\n<p>Google Apps Script(GAS)\u306b\u306f\u30b3\u30fc\u30c9\u4e0a\u306b\u8a18\u8f09\u3059\u3079\u304d\u3067\u306f\u306a\u3044\u3001API\u30ad\u30fc\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u79d8\u533f\u60c5\u5831\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3057\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u4fdd\u5b58\u3057\u305f\u308a\u3059\u308bPropertiesService\u30af\u30e9\u30b9\u306e\u5229\u7528\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u306f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3044\u3046\u4ed5\u7d44\u307f\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9023\u60f3\u914d\u5217\u306e\u3088\u3046\u306b\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306b\u3057\u3066\u3001\u5404\u7a2e\u60c5\u5831\u304c\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>GAS\u306b\u7528\u610f\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u5168\u90e8\u30673\u7a2e\u985e\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3<\/li><li>\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3<\/li><li>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3<\/li><\/ol>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306fGAS\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u7d10\u3065\u304f\u5f62\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u4fdd\u6301\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306fGAS\u3092\u5b9f\u884c\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306b\u7d10\u3065\u304f\u5f62\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u4fdd\u6301\u3055\u308c\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3072\u3082\u4ed8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u30b3\u30fc\u30c9\u306b\u76f4\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u5371\u967a\u3068\u3055\u308c\u308bAPI\u30ad\u30fc\u3084\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u79d8\u5bc6\u60c5\u5831\u3092\u6271\u3046\u969b\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PropertiesService\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u5404\u7a2e\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u524d\u8ff0\u3057\u305fGoogle Apps Script(GAS)\u306e\u5404\u7a2e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\u3068\u3057\u3066\u3001PropertiesService\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"423\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_001.jpg\" alt=\"Google Apps Script(GAS)\u306ePropertiesService\u30af\u30e9\u30b9\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\" class=\"wp-image-7806\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_001.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_001-300x159.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_001-768x406.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_001-530x280.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_001-565x299.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_001-710x375.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_001-725x383.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>PropertiesService\u30af\u30e9\u30b9\u306b\u306f3\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3001\u5404\u7a2e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><em><strong>getDocumentProperties()<\/strong><\/em><\/li><li><em><strong>getScriptProperties()<\/strong><\/em><\/li><li><em><strong>getUserProperties()<\/strong><\/em><\/li><\/ul>\n\n\n\n<p>\u53d6\u5f97\u3067\u304d\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3001\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4fdd\u5b58\u3084\u53d6\u5f97\u3001\u524a\u9664\u306a\u3069\u306e\u64cd\u4f5c\u304c\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ScriptProperties\u3092\u4f7f\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u64cd\u4f5c\u306f\u975e\u63a8\u5968<\/h2>\n\n\n\n<p>\u306a\u304aQiita\u3084GAS\u306b\u95a2\u3059\u308b\u30d6\u30ed\u30b0\u3067\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001ScriptProperties\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u304c\u3088\u304f\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u300cKEY\u300d\u3068\u3044\u3046\u30ad\u30fc\u540d\u3067\u4fdd\u5b58\u3055\u308c\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><em><strong>ScriptProperties.getProperty(&#8216;KEY&#8217;)<\/strong><\/em><\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001ScriptProperties\u306f2023\u5e745\u6708\u6642\u70b9\u3067GAS\u3068\u3057\u3066\u306f\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u3057\u3066\u304a\u308a\u3001\u975e\u63a8\u5968\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"AnugMYTN7x\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=7793\">GAS\u306eScriptProperties\u30af\u30e9\u30b9\u304c\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\uff01\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\uff1f<\/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;GAS\u306eScriptProperties\u30af\u30e9\u30b9\u304c\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\uff01\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\uff1f&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=7793&#038;embed=true#?secret=5G0gxpbTW4#?secret=AnugMYTN7x\" data-secret=\"AnugMYTN7x\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u524d\u8ff0\u3057\u305fPropertiesService\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u53d6\u5f97\u3084\u4fdd\u5b58\u3001\u524a\u9664\u306e\u64cd\u4f5c\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PropertiesService\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u53d6\u5f97\u30fb\u4fdd\u5b58<\/h2>\n\n\n\n<p>\u5b9f\u969b\u306bPropertiesService\u30af\u30e9\u30b9\u3092\u4f7f\u3044\u3001Google Apps Script(GAS)\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u53d6\u5f97\u3068\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u304d\u307b\u3069\u306ePropertiesService\u30af\u30e9\u30b9\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u304b\u3089\u3001getScriptProperties()\u30e1\u30bd\u30c3\u30c9\u306e\u623b\u308a\u5024\u3067\u3042\u308bProperties\u30af\u30e9\u30b9\u3067\u5b9f\u884c\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"417\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u306eProperties\u30af\u30e9\u30b9\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u53d6\u5f97\u3084\u4fdd\u5b58\u3001\u524a\u9664\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u89e3\u8aac\" class=\"wp-image-7807\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_002-300x156.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_002-768x400.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_002-530x276.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_002-565x295.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_002-710x370.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_002-725x378.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u4e2d\u304b\u3089\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4fdd\u5b58\u3059\u308b<strong>setProperty(key, value)<\/strong>\u3068\u3001\u53d6\u5f97\u3059\u308b<strong>getProperty(key)<\/strong>\u3092\u4f7f\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"412\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_003.jpg\" alt=\"Google Apps Script(GAS)\u3067PropertiesService.getScriptProperties().getProperty\u3084setProperty\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97\u30fb\u4fdd\u5b58\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-7808\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_003-300x155.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_003-768x396.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_003-530x273.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_003-565x291.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_003-710x366.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_003-725x373.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function myFunction() {\n  \/\/PropertiesService\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30bb\u30c3\u30c8\n  PropertiesService.getScriptProperties().setProperty('TEST','\u30c6\u30b9\u30c8\u3067\u3059');\n  \/\/\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97\u3057\u3001\u30ed\u30b0\u51fa\u529b\n  console.log(PropertiesService.getScriptProperties().getProperty('TEST'));\n}<\/code><\/pre>\n\n\n\n<p>PropertiesService\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30bb\u30c3\u30c8\u30fb\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5b9f\u884c\u30ed\u30b0\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004-1024x522.jpg\" alt=\"Google Apps Script(GAS)\u3067PropertiesService.getScriptProperties().getProperty\u3084setProperty\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97\u30fb\u4fdd\u5b58\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\" class=\"wp-image-7809\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004-1024x522.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004-768x392.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004-565x288.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004-710x362.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004-725x370.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_004.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>GAS\u30a8\u30c7\u30a3\u30bf\u306e\u5de6\u30e1\u30cb\u30e5\u30fc\u306b\u3042\u308b\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u300d\u304b\u3089\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"414\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_005.jpg\" alt=\"Google Apps Script(GAS)\u3067PropertiesService.getScriptProperties().setProperty\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8ffd\u52a0\u6210\u529f\" class=\"wp-image-7810\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_005.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_005-300x155.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_005-768x397.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_005-530x274.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_005-565x292.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_005-710x367.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_005-725x375.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306bPropertiesService\u30af\u30e9\u30b9\u306b\u7528\u610f\u3055\u308c\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u30b3\u30fc\u30c9\u304b\u3089\u64cd\u4f5c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PropertiesService\u3067\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u53d6\u5f97\u30fb\u4fdd\u5b58<\/h2>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540c\u69d8\u306b\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3064\u3044\u3066\u3082\u3001PropertiesService\u30af\u30e9\u30b9\u3067\u53d6\u5f97\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u306e\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4fdd\u5b58\u3057\u3066\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5b9f\u884c\u30ed\u30b0\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function userPropertyTest(){\n  \/\/PropertiesService\u3067\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30bb\u30c3\u30c8\n  PropertiesService.getUserProperties().setProperty('USER','\u30e6\u30fc\u30b6\u30fc\u3067\u3059');\n  \/\/\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97\u3057\u3001\u30ed\u30b0\u51fa\u529b\n  console.log(PropertiesService.getUserProperties().getProperty('USER'));  \n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"404\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_006.jpg\" alt=\"Google Apps Script(GAS)\u306ePropertiesService.getUserProperties()\u3067\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4fdd\u5b58\u30fb\u53d6\u5f97\u306e\u64cd\u4f5c\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-7811\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_006.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_006-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_006-768x388.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_006-530x268.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_006-565x285.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_006-710x359.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/06\/20230603_auto_006-725x366.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5834\u5408\u306f\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306b\u7d10\u3065\u3044\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u305f\u3081\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u4e0a\u306b\u306f\u8ffd\u52a0\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7de8\u96c6\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3067\u3082\u53d6\u5f97\u3067\u304d\u306a\u3044\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8a2d\u5b9a\u30fb\u53d6\u5f97\u3082\u53ef\u80fd<\/h2>\n\n\n\n<p>\u306a\u304a\u3001PropertiesService\u30af\u30e9\u30b9\u3092\u4f7f\u3048\u3070\u30013\u7a2e\u985e\u3042\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u6700\u5f8c\u306e1\u3064\u3067\u3042\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3082\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540c\u69d8\u3067\u3059\u3002<\/p>\n\n\n\n<p><em><strong>PropertiesService.getDocumentProperties()<\/strong><\/em><\/p>\n\n\n\n<p>\u4e0a\u8a18\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u53d6\u5f97\u3067\u304d\u308b\u306e\u3067\u3001setProperty\u3084getProperty\u30e1\u30bd\u30c3\u30c9\u3067\u8a2d\u5b9a\u30fb\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001Google Apps Script(GAS)\u3067\u5229\u7528\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>GAS\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u4ee5\u5916\u304b\u3089\u306f\u5024\u3092\u53c2\u7167\u637a\u305b\u305f\u304f\u306a\u3044\u5834\u5408\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5229\u7528\u3059\u308b\u6a5f\u4f1a\u306f\u5c11\u306a\u3044\u3067\u3059\u304c\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4f7f\u3044\u65b9\u304c\u7406\u89e3\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u3059\u3050\u5229\u7528\u3067\u304d\u308b\u306e\u3067\u3001\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306a\u3069\u5404\u7a2e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306ePropertiesService\u306e\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5834\u5408\u3001\u4ee5\u524d\u306fScriptProperties\u30af\u30e9\u30b9\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u3057\u305f\u306e\u3067\u3001PropertiesService\u3092\u4f7f\u3046\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>PropertiesService\u3067\u306f\u307e\u305a\u30013\u7a2e\u985e\u3042\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u53d6\u5f97\u3057\u305f\u4e0a\u3067\u3001\u53d6\u5f97\u3084\u4fdd\u5b58\u3001\u524a\u9664\u306a\u3069\u306e\u64cd\u4f5c\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Qiita\u3084Zenn\u306a\u3069\u3067\u3082GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u64cd\u4f5c\u306fScriptProperties\u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u304c\u591a\u3044\u3067\u3059\u304c\u3001\u975e\u63a8\u5968\u306e\u305f\u3081PropertiesService.getScriptProperties()\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u306b\u306f\u30b3\u30fc\u30c9\u4e0a\u306b\u8a18\u8f09\u3059\u3079\u304d\u3067\u306f\u306a\u3044\u3001API\u30ad\u30fc\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u79d8\u533f\u60c5\u5831\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u305d\u3046\u3057\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7809,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,1245,440,1246],"class_list":["post-7805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-propertiesservice","tag-440","tag-1246"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7805"}],"version-history":[{"count":2,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7805\/revisions"}],"predecessor-version":[{"id":7813,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7805\/revisions\/7813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/7809"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}