Get Files By ID, Search and create folder -Google Apps Script tutorial

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024

Комментарии • 12

  • @TurboTroller
    @TurboTroller Год назад +1

    You're a LEGEND. I have been searching for a tutorial on exactly this for so long and this is the first one that solved my problem!

  • @fab99fab
    @fab99fab 5 лет назад +1

    Good one thanks so much !!

  • @juanyoanu8777
    @juanyoanu8777 4 года назад

    This function works well from the console but from a document,
    the call to Driveapp does not work, why? What's left to define? SORRY FOR MY ENGLISH

  • @dornescu.lucian
    @dornescu.lucian Год назад

    Hello,
    This line of code uses the id entered manually in the script
    let copyFile = DriveApp.getFileById('1GhpGpHM......').makeCopy(),
    copyID = copyFile.getId(),
    copyDoc = DocumentApp.openById(copyID),
    How could I use the ID that can be found manually written in the google spreadsheet, so that if I change it from the spreadsheet, it will also change automatically in the script. I have a list of IDs associated with some templates.
    I used :
    var ID_template = ss.getRangeByName('ID_template').getValue;
    let copyFile = DriveApp.getFileById(ID_template).makeCopy(),
    copyID = copyFile.getId(),
    copyDoc = DocumentApp.openById(copyID),
    but without any result.
    Can something be done about this?

  • @imtiazali1628
    @imtiazali1628 5 лет назад

    Dear Can you explain further if we want to go to a specific folder first then we want to search the files

  • @MichaelDaniels
    @MichaelDaniels 4 года назад

    Is there any way to add the file name into a cell an example would be I want the file name in cell a1 is their script I can write to get that?

  • @fab99fab
    @fab99fab 5 лет назад

    Hi, iam working on one task where i need to show all the folders in Google drive and its content on a website or on URl. (Similarly how we use file explorer on local computer drive). Secondly,i want to have username and password to webpage so whenever the page is accessed it should prompt for username and password. Upon correct user name and password it should show folderd. Please share your idea☺

  • @santhoshnaidu3592
    @santhoshnaidu3592 2 месяца назад

    Superb, need some live projects at appscript bro🎉🎉🎉🎉🎉🎉 ready to make subscription also
    Plz post UPI id at description to make an payment

  • @udayp1639
    @udayp1639 3 года назад

    SpreadsheetApp.openById and SpreadsheetApp.openByUrl no longer works. Error message : Spreadsheets failed while accessing document

    • @udayp1639
      @udayp1639 3 года назад

      If I copy url from browser address and paste it directly in the script, SpreadsheetApp.openByUrl works. But if I get the url from DriveApp, SpreadsheetApp.openByUrl fails.

  • @ALVAROCOSTADEFARIA
    @ALVAROCOSTADEFARIA 5 лет назад

    How to get folders ID instead of files ID