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

47
Views
Google Script - Order of statement execution

I have an issue with script execution. I need help:

I want to set the script name "datasu" & "su" to execute after the previous script execution is completed. Because the script behind will base on the result of the previous script. I have tried using return but it has not worked. Are there any solutions to run & finish the scripts base on order? Please help me to solve this issue, Thank you so much!

  var team_num = team_ss.filter(String).length;
  ss.getRange(2,1,ss.getLastRow(),23).clearContent();
  var dataena = ss.getRange(2,1,ena.getLastRow(),22).setValues(valueena);
  console.log(team_num);
  var ena = ss.getRange(team_num+1,23,(ss.getLastRow()-team_num),1).setValue('Ena');
  var datasu = ss.getRange(ss.getLastRow()+1,1,su.getLastRow(),22).setValues(valuesu);
  var su = ss.getRange(team_num+1,23,(ss.getLastRow()-team_num),1).setValue('SU');```

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It's not super clear what you're trying to do here but try adding SpreadsheetApp.flush() after the line of code you want to make sure has written to your spreadsheet.

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!