This is a Google Apps Script for automatically sending email responses to Boston College Marching Band Instructors and Section Leaders based on the selections in an AER form.
I was able to package my code into a library, making installation a little easier and any future updates much easier. To install, follow these steps closely:
-
Ensure that you are signed out of all Google accounts except the EBoard account that owns the AER form. Otherwise the Google Apps Scripts page sometimes refuses to load (don't worry this is only for when you install it).
-
Open the Google Sheet that receives the AER Form data. To make sure you get the right Sheet, you can go to the AER form on Google Forms, click the
Responses
tab, and clickView in Sheets
. -
Click the
Extensions
menu and click Apps Script. This should create a new Apps Script project and bind it to the Sheet, giving you a page like this: -
Click the plus button next to the
Libraries
list on the left sidebar. Paste in the following Script ID and press theLook up
button:1AI6Lqv2gGOPDSBl2we24BbfzK0OI49-FGZAQeXUNISKuRU_hbX3vRM6l
-
In the version dropdown, select the highest number (unless I tell you otherwise). Ensure that the
Identifier
isBCMBAERResponses
, which should be the default. Click theAdd
button. -
Delete the placeholder code that was placed automatically in the
Code.gs
file, and replace it with the entire contents of theCode.gs
file from this repository. Save the project. Now is also a good time to give the project a better name than "Untitled project." -
Go back to the Google Sheet that receives form responses and refresh the page. After a few seconds you should see a new
BCMB AER Responses
dropdown in the toolbar (this might take a few seconds after the Sheet loads). ClickSend AER response emails
in the dropdown. It will ask for authorization, and may show a warning that "Google has not authorized this app", which you can get past by clickingAdvanced
and thenGo to <project name> (unsafe)
. Then clickAllow
. -
Click
AER Responses
again, and clickSend AER Response Emails
again (you have to do it twice because the first time just asks for authorization). -
Done! AERs should now automatically send out responses!
If I deploy a new update (I'll let you know), just go to the Google Script Project and click BCMBAERresponses
under the Libraries
list. Click the Version
dropdown and select the new version. Click Save
and you're done.
If you ever change the format of the AER Google Form, I'll have to update the library, which would be quick and easy but would need to be done or the email responses would stop working.