Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

373
Vistas
Google Apps Script: Create Google Shared Drive Folder from a Google Form submission

I found this thread on creating a folder in Google Drive from a Google Form submission. Can any one help me on creating a folder but in Google Shared Drives instead from Google Form submission.

Thank you

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you want to create a new folder in the Shared Drive by modifying the following script,

function createFolder(form) {
  var items = form.response.getItemResponses()
  var name = items[0].getResponse();
  DriveApp.createFolder(name);
}

How about the following modification? In the current stage, fortunately, the folder ID is used, you can access the Shared Drive with Drive service.

Modified script:

function createFolder(form) {
  var folderId = "###"; // Please set the folder ID on the Shared Drive. If you want to create a new folder to the root folder of the Shared Drive, please set the Drive ID here.

  var items = form.response.getItemResponses()
  var name = items[0].getResponse();
  DriveApp.getFolderById(folderId).createFolder(name);
}
  • In this modification, folderId is the folder ID of the specific folder in the Shared Drive or the Drive ID of the Shared Drive. When the Drive ID is used, the folder is created to the root folder of the Shared Drive.

Note:

  • In this case, you are required to have permission for writing to the Shared Drive. Please be careful about this.

Reference:

  • getFolderById(id)
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda