Skip to main content
On a badge evening, leaders tick off requirements as young people complete them. This recipe gives you a Google Sheet to tick in: one row for each young person, one column for each requirement of the badge. When the evening is over, one command sends the ticks to Scoutworks, and any badge whose last requirement was ticked is ready to award. It takes about ten minutes to set up.

1. Add the script

In a new 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. To see how the sheet works, use the sandbox key: it builds the sheet, but it is read-only, so sending ticks answers 403. To send ticks, use your own key with these scopes: members:read and badges:read to build the sheet, and badges:write to send it. Then change api-demo.scoutworks.app to api.scoutworks.app.

3. Build the sheet

Reload the Google Sheet. A Scoutworks menu appears. Choose Build the sheet for a badge, and give the badge’s id (for example badge_050 for the Squirrels’ Be Active badge) and, if you like, a section’s id. The sheet starts with what is already signed off in Scoutworks.

4. Tick, then send

Tick the requirements each young person completes. Untick a box to take a sign-off back. When you are done, choose Scoutworks → Send ticks to Scoutworks. Only the boxes that differ from Scoutworks are sent, up to 100 in each request: the script reads what is signed off again first, so a sign-off a leader made in Scoutworks meanwhile is not undone. Try it with one tick first. Tick one box, send it, and check the young person’s badge in Scoutworks. Then tick the rest. When the last requirement of a badge is signed off, Scoutworks completes the badge, just as when a leader ticks it in the app. It then appears in Badges to order.

Notes

  • Some requirements cannot be ticked. A requirement completed by recording activities, such as nights away or hikes, completes on its own when the activities are recorded. Ticking it comes back as not sent, with the reason.
  • Who signed it off. Scoutworks records the sign-off as made by the admin who created the key.
  • Nobody is told. No parent is emailed. A Young Leader’s module or Mission sign-off sends them no notice either, unless you add notify: true to the request body next to items.
  • Ticking twice is fine. A requirement already signed off answers unchanged.