LANG SELRCT

Apps Script Reference  (Create: Create new Spreadsheet | Create new Apps Script

Wednesday, April 8, 2020

setPropertiesで一括でプロパティを保存したい


このようなプロパティを一括で保存したい



プロパティをひとつずつ保存する場合は
ScriptPropertiesを読み書きしてみる



コード.gs
function setScriptProps(){
  var propsObj = {
    "id": "123",
    "name": "foobar"
}
  var ScriptProperties = PropertiesService.getScriptProperties();
  ScriptProperties.setProperties(propsObj); 
}



関連記事

ScriptPropertiesを読み書きしてみる

他の関連記事
PropertiesService



Latest post

Extracting data from Google Sheets with regular expressions

Introduction Regular expressions are a powerful tool that can be used to extract data from text.  In Google Sheets, regular expressions ca...