LANG SELRCT

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

Sunday, December 9, 2018

Google Apps ScriptのスクリプトIDの取得方法


  1. プロジェクトのプロパティを見る
  2. URLを見る
  3. ScriptApp.getScriptId()で見る

1. プロジェクトのプロパティを見る





2. URLを見る


https://script.google.com/macros/d/スクリプトのID/edit?splash=yes


3. ScriptApp.getScriptId()で見る


コード.gs
function getScriptId() {
  var id = ScriptApp.getScriptId();
  Logger.log(id);
}
意訳
この機能がやること
スクリプトIDを取得して
ログに出す



実行結果



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...