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

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

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 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!