Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

397
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!