Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

48
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda