Skip to main content
  • For: groups that use Microsoft 365
  • You get: a Teams post the moment each new waiting-list application arrives
  • Time: about fifteen minutes
  • Scopes: waiting-list:read
If your leaders use Microsoft 365, this recipe posts each new waiting-list application to a Teams channel as soon as it arrives. Scoutworks sends a webhook to a Power Automate cloud flow, which reads the application and posts it.
The When an HTTP request is received trigger and the HTTP action are premium connectors. They need a Power Automate Premium licence, or a Microsoft 365 plan that includes premium connectors. Without it, use n8n or Zapier for the same job.

1. Start the flow

1

Create the flow

In Power Automate, choose Create → Instant cloud flow → Skip. Call it Scoutworks waiting list.
2

Add the trigger

Search for Request and choose When an HTTP request is received. Set Who can trigger the flow? to Anyone. Paste this into Request Body JSON Schema:
Choose Save. The trigger now shows an HTTP URL. Copy it.
3

Add the address to Scoutworks

In Scoutworks, a group admin opens Settings → Integrations → Webhooks, adds the HTTP URL from Power Automate and ticks waiting-list.application.received.

2. Read the application

The webhook carries the application’s id, but no names: a webhook never carries personal details. The flow reads the rest with your key.
1

Add the HTTP action

Choose + → Add an action, search for HTTP and choose HTTP. Fill it in:
  • URI: choose Expression and enter:
  • Method: GET
  • Headers: Authorization → Bearer followed by the key, for example:
2

Keep the key out of the run history

Open the HTTP action’s Settings. Turn on Secure inputs and Secure outputs. The run history then hides the key and the names. Do the same for the Post message action that you add below, because it also handles names.

3. Post to Teams

1

Post a message

Add Microsoft Teams → Post message in a chat or channel. Post as Flow bot, in your leaders’ channel. For the message, choose Expression and enter:
Choose Save. In Scoutworks, choose Send test event on the webhook to check that the flow runs. A test event names no real application, so the HTTP action answers 404 and posts nothing: that is expected. Add an application on the demo group, or on your own, to see a real post.

4. Switch to your group

In the HTTP action, change api-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs the waiting-list:read scope.
The key is saved inside the flow. Anyone who can edit the flow can read it. Do not share the flow, and create a key with only the scope it needs. If you must share the flow, keep the key in Azure Key Vault and read it with the Azure Key Vault action instead.

Limits

  • The trigger address is a secret. Anyone who has it can start the flow. The flow reads the application from the API rather than trusting the message, so a fake message with a made-up id answers 404 and posts nothing. Keep the address to yourself all the same.
  • One message for each application. Scoutworks retries a webhook the flow did not accept, with the same webhook-id. A flow that fails half way may post twice. See Webhooks.
  • Imports. An import that adds more than 100 applications at once sends one bulk summary instead of an event for each. To skip it, put the HTTP and Teams actions inside a Condition that checks triggerBody()?['data']?['applicationId'] is not empty.
  • Errors. If the key stops working, the HTTP action fails, and Power Automate emails the flow’s owner. See Errors for what each code means.

Without webhooks: a daily summary

If your group has not turned on webhooks, use a Scheduled cloud flow that repeats every 1 day instead of the HTTP trigger. Its HTTP action reads https://api-demo.scoutworks.app/api/v1/waiting-list?status=received&limit=200, then a Filter array action keeps yesterday’s applications with this filter query:
Loop over the Body of Filter array with Apply to each, and post item()?['firstName'] and the other fields as above.