- For: section leaders
- You get: the planned moves between sections, and each section’s capacity today and for the next 12 months
- Time: about five minutes
- Scopes:
moving-on:read
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 movingOn in the toolbar and press Run. Open the Moving on tab: the soonest move is at the top, and moves with no date yet are at the bottom. Agreed moves are ones a leader has confirmed; Suggested ones are Scoutworks’s suggestions from each young person’s age, which nobody has agreed yet. The Capacity tab has one row per section, in age order. Full from is the first month the section is projected to be full (95% of its capacity or more). The month columns show how many young people each section is expected to have at the end of that month.4. Switch to your group
Changeapi-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs only the moving-on:read scope. It does not need dates of birth: Scoutworks has already worked out who moves and when.
Change it
- Moves already made. The script lists moves still to happen. Add
'executed'to the status check to keep a record of moves that have happened too. - New starters. Rows with
typewaiting_list_intakeare places planned for families on the waiting list. They carrywaitingListEntryId; with thewaiting-list:readscope, match it toGET /waiting-listfor the name. - With the waiting list. Use
m.projectedWithWaitingin place ofm.projectedto see each section if every place that opens is offered to the waiting list.