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

302
Vistas
Add submenu inside other submenu in Google Apps Script

So, I'm coding in Google Apps Script, and I neet to make a second level submenu, but everytime I try to add the following code, I get the error from the 2nd image:

var ui = SpreadsheetApp.getUi();
  ui.createMenu('WB_Tools')
    .addSubMenu(ui.createMenu('LE Ready')
      .addSubMenu(ui.createMenu('Generate E-mail'))
        .addItem('SMR', 'WB_Tools.GENERATELESMRREADY')
        .addItem('Non SMR', 'WB_Tools.GENERATELENPIREADY')
      .addSeparator()
      .addItem('Add to SMR/MR Pending tool', 'WB_Tools.ADDPENDINGACT')
      .addItem('Update SMR/MR Dashboard', 'WB_Tools.UPDATEDASHBOARD'))
    .addSeparator()

error

With that, I must show you the line 62 of the file: line 62

So, what should I do to achieve the following:

Global menu

  • First submenu
    • Second submenu
      • Item 1
      • Item 2
    • Item 3
    • Item 4
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try this:

.addSubMenu(SpreadsheetApp.getUi().createMenu('TestData')
              .addItem('testDataFixedHeaders(1)', 'testDataFixedHeaders')
              .addItem('testDataRandowHeaders(1)', 'testDataRandowHeaders')
              .addItem('testDataWrappedText','testDataWrpdStrings1')
              .addItem('testData1(2)', 'testData1')
              .addItem('testData2(2)', 'testData2')
              .addItem('testData3(2)', 'testData3')
              .addItem('testData4(2)', 'testData4')
              .addItem('testData5(3)', 'testData5')
              .addItem('testData6(3)', 'testData6')
              .addItem('testData7(3)', 'testData7')
              .addItem('testData8(3)', 'testData8')
              .addSubMenu(SpreadsheetApp.getUi().createMenu('sub sub')
              .addItem('new','elfunko')))
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