- For: section leaders
- You get: one list of parents for each section, brothers and sisters merged, ready for Bcc
- Time: about five minutes
- Scopes:
members:readandmembers.contacts:read
- Each parent appears once in each section, even with two children in it.
- A parent with children in two sections appears in both.
- A Bcc row for each section holds every address, ready to paste.
This list does not know which parents have unsubscribed. For news to parents, send the email from Scoutworks instead, which does. Use this list for the jobs Scoutworks email cannot do for you.
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.
3. Run it
Choose parentContacts in the toolbar and press Run. Open the Parent contacts tab. To email a section, copy the cell next to its Bcc row and paste it into the Bcc box of a new email. Always use Bcc, not To. Parents must not see each other’s addresses.4. Switch to your group
Changeapi-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs members:read and members.contacts:read.
Notes
- With
members.contacts:read, the API sends each parent’s name, email and phone number, and each member’s date of birth, gender and home address. This recipe uses the names and emails only. The API never sends health information or notes. - A member’s main section decides where their parents appear. A young person moving on counts in their main section only.
- The same parent has the same
idfor each child, so brothers and sisters share one row.