- For: group admins with a joining form on their website
- You get: each answer to your Google Form or Microsoft Form added to your waiting list
- Time: about fifteen minutes
- Scopes:
waiting-list:read,waiting-list.contacts:readandwaiting-list:write
1. Create a key
In Scoutworks, open Settings → Integrations → API keys and create a key called Joining form, with the scopeswaiting-list:read, waiting-list.contacts:read and waiting-list:write. Copy the key: you see it once. See Authentication.
The form adds applications as you, and Scoutworks records the key on each one. Leaders who follow the waiting list are told in Scoutworks, as for every application. The family is not emailed unless you choose to below.
2. Make the form
Ask these questions. The names in brackets are the fields the script sends.
Keep the question titles exactly as in the first column, because the script looks for them.
3. Google Forms: add the script
1
Open the form's script editor
In the form, choose ⋮ → Script editor. Delete what is there, paste the script below and choose Save.
2
Add your key
Choose Project Settings → Script Properties → Add script property. Property:
SCOUTWORKS_API_KEY. Value: your key. The key is stored with the script, not in the form, so people filling it in never see it.3
Run it on every answer
Choose Triggers → Add Trigger. Function:
sendToWaitingList. Event source: From form. Event type: On form submit. Google asks you to allow the script to read the form and connect to an external service.Code.gs
4. Microsoft Forms: use Power Automate instead
Power Automate’s HTTP action needs a premium licence. If you have one:1
Start the flow
Create an Automated cloud flow with the trigger When a new response is submitted (Microsoft Forms), then Get response details.
2
Add an HTTP action
- Method: POST
- URI:
https://api.scoutworks.app/api/v1/waiting-list - Headers:
Authorization=Bearerfollowed by your key,Content-Type=application/json, andIdempotency-Key=ms-form-followed by the Response Id from the trigger - Body: a JSON object with the fields in the table above, each set to the matching answer from Get response details
3
Test it
Fill in the form once with a made-up child, check the flow’s run history, then delete the application in Scoutworks.
Choices
- Send the family the confirmation email. Add
"notify": trueto the body. The family then gets the same confirmation the Scoutworks form sends. Leave it out while you test. - A section to wait for. Add
targetSectionIdwith a section’sidfromGET /sections, or let leaders choose one in Scoutworks. - Siblings and preferred days. The API also takes
hasSibling,siblingName,preferredDaysandwillingToVolunteer. The API reference lists every field.
If something goes wrong
400 invalid_request: an answer did not pass the form’s rules, for example a phone number that is not a UK number or a child over 18. The message names the field.403 insufficient_scope: the key needs all three waiting-list scopes.409 possible_duplicate: the child is on the waiting list already. The script logs it and stops.402 subscription_required: the group’s subscription has lapsed.