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

131
Visualizações
Function not running fully before next execution starts in google apps script

I have 3 functions I want to run one after the other. For some reason, my first function doesn't fully run when my code is as follows :

function main_url_generator_(){
  
  
  create_owner_links_list();
  delete_all_filter_views();
  create_filter_view_w_url();

};

When I separate them into 2 functions it works fine:

function main_url_generator_1(){
 
  create_owner_links_list();

};



function main_url_generator_2(){
  
  delete_all_filter_views();
  create_filter_view_w_url();


};

How can I combine all 3 functions and ensure the first function(create_owner_links_list()) has fully run before it goes through the rest of the functions. Please help

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

With the help of comments(Thanks all), I modified my function as follows and it works great:

function main_url_generator(){
  
  
  create_owner_links_list();
  //Added the SpreadsheetApp.flush function
  SpreadsheetApp.flush(); 
  delete_all_filter_views();
  create_filter_view_w_url();

};
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