Creating and Sending sheets in the same function

前端 未结 1 414
日久生厌
日久生厌 2020-11-28 17:02

I am trying to create a simple script with a function to create new sheets and a main function to email those sheets. When I try to call the function to create sheets inside

相关标签:
1条回答
  • 2020-11-28 17:31

    Google Apps Script apply changes made on Google Sheet in batches:

    Scripts commonly need to read in data from a spreadsheet, perform calculations, and then write out the results of the data to a spreadsheet. Google Apps Script already has some built-in optimization, such as using look-ahead caching to retrieve what a script is likely to get and write caching to save what is likely to be set.

    Use SpreadsheetApp.flush() to "force" the application of the changes that your script made before sending the sheets by email.

    Related

    • Why do we use SpreadsheetApp.flush();?
    0 讨论(0)
提交回复
热议问题