Chapter 9. More Tips and Tricks and Creating an Add-on

In the previous chapter, you built an order processing workflow application. In this chapter, you will learn:

  • To overcome script maximum execution time restriction
  • To use script codes from other script files or libraries
  • Create add-ons that use the OAuth2 external library

Overcoming the "script exceeded maximum execution time" error

What if one of your script functions has a bug that causes endless (not terminating) execution, for example, an endless for loop and/or while loop. There are no remedies other than carefully examining the loop terminating statements.

Sometimes, your script may be flawless or bug free, but if it needs to handle a large spreadsheet or external data, it may take a long ...

Get Learning Google Apps Script now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.