---
title: "Automatically running a Google Apps Script function every quarter or another monthly period greater than one month "
author: "Martin Hawksey"
date: 2022-06-08T15:47:07+00:00
modified: 2022-06-08T15:48:11+00:00
canonical_url: https://pulse.appsscript.info/p/2022/06/automatically-running-a-google-apps-script-function-every-quarter-or-another-period-greater-than-one-month/
markdown_url: https://pulse.appsscript.info/p/2022/06/automatically-running-a-google-apps-script-function-every-quarter-or-another-period-greater-than-one-month.md
categories:
  - "Beginner"
  - "Snippet"
tags:
  - "hawksey.info"
featured_image: https://pulse.appsscript.info/files/2022/06/image.png
description: "I've recently been revisiting some of my old Google Apps Script posts to do a bit of housekeeping. I thought this was a nice little snippet should you want to schedule a function to run on a time-driven trigger greater than one month. The trick used is to recursively create a time-driven trigger when the function is called. The solution comes with some caveats :)"
---

# Automatically running a Google Apps Script function every quarter or another monthly period greater than one month 

![Automatically running a Google Apps Script function every quarter or another monthly period greater than one month ](https://pulse.appsscript.info/files/2022/06/image.png)

> [https://hawksey.info/blog/2017/02/running-a-google-apps-script-every-quarter-or-x-months/](https://hawksey.info/blog/2017/02/running-a-google-apps-script-every-quarter-or-x-months/)
> One of the great things about Google Apps Script is the way you can automate tasks. I’ve previously written about how I automate reporting and other examples like running backup processes. These usually run daily or once a month which is very straight forward to setup in Google Apps Script. If you want to run a script automatically every x number of months such as quarterly it gets a little harder. If you only want you script to run every three months … another option is to manage triggers programmatically which allows you to specify the date a function should be run again.

I’ve recently been revisiting some of my old Google Apps Script posts to do a bit of housekeeping. I thought this was a nice little snippet should you want to schedule a function to run on a time-driven trigger greater than one month. The trick used is to recursively create a time-driven trigger when the function is called. The solution comes with some caveats :)

Source: *[Running a Google Apps Script function every quarter or x months*](https://hawksey.info/blog/2017/02/running-a-google-apps-script-every-quarter-or-x-months/)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2022/06/automatically-running-a-google-apps-script-function-every-quarter-or-another-period-greater-than-one-month/](https://pulse.appsscript.info/p/2022/06/automatically-running-a-google-apps-script-function-every-quarter-or-another-period-greater-than-one-month/)*
