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

398
Vistas
Google Apps Script, print and don't render my css file?

I've un other problem, with my google apps scpript, now html, css, and js files are ok. But when I call a function

.gs
function func(){
  var message="";
  try {
   
    );
  }
  catch (error) {
     message="Errors "+ 
      "\r\nMessage: " + error.message
      + "\r\nFile: " + error.fileName
      + "\r\nLine: " + error.lineNumber;
  }
  finally {
    if(message=="") {
      message="Completed Successfully";
    }
    Logger.log(message);
  }
}

with

.js
function onFailure(error){
    console.log("onFailure: " + error);
}

function onSuccess(resp) {
    console.log("onSuccess: "+ resp);
}
google.script.run.withFailureHandler(onFailure).withSuccessHandler(onSuccess).func();

the console show this logs, and not my

Net state changed from IDLE to BUSY
Net state changed from BUSY to IDLE
null

I just try to follow much video but I can't see the error. I don't understand where I'm wrong, please help me :’(.

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

0

Posting this for documentation purposes.

As mentioned by Tanaike in comments, you need to add return message to your function if you want to actually return the value (ref: return).

Regarding Net state changed from IDLE to BUSY, see this question.

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