Szukaj…


Uwagi

Możliwe jest również uzyskanie pliku według adresu URL pliku. Identyfikator pliku znajduje się w adresie URL, więc użycie identyfikatora zamiast całego adresu URL oznacza, że parametr jest krótszy. Przechowywanie adresu URL zamiast identyfikatora zajmuje więcej miejsca.

Pobierz plik z Dysku Google za pomocą identyfikatora pliku

function getGoogleDriveFileById(id) {
  var file;
  
  file = DriveApp.getFileById(id);//Returns a file - The "id" must be a string
  
  //One way to manually get a file ID
  // - Open the file from Google Drive
  // - The file ID is in the URL in the browsers address bar
  //https://docs.google.com/spreadsheets/d/File_ID_is_here/edit#gid=0
};


Modified text is an extract of the original Stack Overflow Documentation
Licencjonowany na podstawie CC BY-SA 3.0
Nie związany z Stack Overflow