1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Google App ScriptからGoogle Driveを使う

Posted at

Google App Script(GAS)で、Google Driveのファイルにアクセスしたい場合(GASでBigQueryを呼び出して、Drive上のSpreadsheetファイルにアクセスする場合も含む)

単純にDriveAppを追加するのでは駄目で、適当なフォルダID(自身のGoogleアカウントでアクセスできるもの)を指定して、アクセスしておくことが必要になるようです

function driveCertification() {
//フォルダを取得。Google Drive上の適当なフォルダIDを入れる
let myFolder = DriveApp.getFolderById('適当なフォルダID'); 
Logger.log(myFolder.getName());
}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?