Skip to main content
  • For: section leaders and group admins
  • You get: a sheet of the addresses that bounced or marked an email as spam, refreshed each week
  • Time: about five minutes
  • Scopes: communications:read and communications.people:read
When an email to a parent bounces for good, or a parent marks one as spam, Scoutworks stops emailing that address. You do not need to do anything to stop the emails. But that family now misses every message, often without anyone noticing. This recipe lists those addresses in a Google Sheet, refreshed each week. A leader can then ask the family for a new address and fix the contact in Scoutworks. It uses Google Apps Script. It takes about five minutes.

1. Add the script

In your Google Sheet, choose Extensions → Apps Script. Delete what is there, paste the script below and choose Save.
Code.gs

2. Add your key

In the script editor, choose Project Settings (the cog), then Script Properties → Add script property. Property: SCOUTWORKS_API_KEY. Value: the sandbox key to try it, or your own key. Choose Save script properties.

3. Run it, then refresh it every week

Choose blockedAddresses in the toolbar and press Run. Open the Not emailed tab. To refresh it every Monday, choose Triggers (the clock), then Add Trigger. Function: blockedAddresses. Event source: Time-driven. Type: Week timer. Day: Every Monday. Choose Save.

4. Switch to your group

Change api-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs communications:read and communications.people:read. The second scope is the one that opens this list, because every entry is a person’s address.
Email addresses are personal data. Keep the sheet private to the leaders who fix contacts.

What each reason means

The list is for fixing records, not for sending. Scoutworks already leaves these addresses out of every email, so you never need to remove them from a send yourself.