Use this example spreadsheet for a starting point. Under the "File"
tab, select "Make a copy"
.
https://docs.google.com/spreadsheets/d/1jbkGnok85Q9qT0O4hRAn0uVDA9deWW10kMwreoBpzKg/.
The spreadsheet has the form shown in public-records-request-log.csv
. Columns may be renamed if desired. Additional columns can be added as needed. The only important thing is that the provided columns stay in their current locations.
Conditional formatting
The provided conditional formatting makes it easier to scan the spreadsheet at a glance. It will show one of three statuses for a records request.
- Complete (green). You have your records and have moved on.
=EQ($A:$A, "Complete") // If equal to "Complete"
- Pending (yellow). If action date is still in future. You are patiently awaiting your records.
=GT($F:$F, TODAY()) // If date is later than today
- Stalled (red). If action date is today or in past, but you have not received your records. You are getting less patient.
// The last condition is to avoid red fill as default for blank rows.
=AND(LTE($F:$F, TODAY()), NE($A:$A, "Complete"), NE($A:$A, "")) // If date is today or older, but not complete
Data validation
The status can be either "Pending"
or "Complete"
. There are data validation measures in place under the "Status"
column.
List of items: "Pending,Complete"
The "Action date"
must be a weekday. Data validation custom formula is:
=LTE(WEEKDAY($F:$F, 2), 5) // If less than or equal to 5. Option=2 follows format of 1=Monday, 2=Tuesday, ... , 5=Friday
While viewing the spreadsheet, click the "Tools"
tab and then select "Script editor"
to open the script that powers email notifications. The provided code is the same as that in script.gs
.
Before using the script, you will need to update the spreadsheetDetails
function with your intended email recipients as well as your new spreadsheet's ID. It is located in your spreadsheet's URL as shown here: https://docs.google.com/spreadsheets/d/DOC_ID/
The email will look similar to email.html
.
Set a trigger by clicking "Resources"
and then selecting "Current project's triggers"
. Adjust it to your liking.
Test it out by selecting main
in the dropdown menu at the top of the page. Then click on the play button ▶ to trigger the script to run the main
function. You might need to first authorize the script so it can access your email account.