1. Start the flow
1
Create a scheduled flow
In Power Automate, choose Create → Scheduled cloud flow. Call it Scoutworks waiting list. Set it to repeat every 1 day, and set a start time of 07:00. Choose Create.
2
Add the HTTP action
Choose + → Add an action, search for HTTP and choose HTTP. Fill it in:
- URI:
https://api-demo.scoutworks.app/api/v1/waiting-list?status=received&limit=200 - Method: GET
- Headers:
Authorization→Bearerfollowed by the key, for example:
3
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 Filter array and Post message actions that you add below, because they also handle names.
2. Keep only yesterday’s applications
1
Add a Filter array action
Add the Filter array action (under Data Operation).
- From: choose Expression and enter
body('HTTP')?['data'] - Filter query: choose Edit in advanced mode and enter:
3. Post to Teams
1
Add a loop
Add Apply to each. For Select an output from previous steps, choose the Body of Filter array.
2
Post a message
Inside the loop, 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:
addDays(utcNow(), -1) to addDays(utcNow(), -365) for one test, then change it back.
4. Switch to your group
In the HTTP action, changeapi-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs the waiting-list:read scope.
Limits
- One page. The flow reads the first 200 applications at
received, the first stage. Once a leader moves an application on, it leaves that list. A group rarely has more than 200 at that stage. - Other lists. Change the URI to read another list. The API reference lists every endpoint and field.
- 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.