Microsoft Power Automate
Microsoft Power Automate runs cloud flows in Microsoft 365: a response to a Microsoft Forms form, a new row in Excel or SharePoint, an email in Outlook starts a cloud flow, and its actions follow. The HTTP action sends an event to the Flows address, and the person who filled in the form gets the right message in Viber or SMS.
On this page "cloud flow" is the automation in Power Automate, and "flow" is the flow of messages in the cabinet.
This page is written from the public documentation of Microsoft and has not been checked on a live account yet.
What you need
- Power Automate Premium or a per-flow licence: HTTP is a premium connector. The plans of Microsoft 365 include only the standard ones.
- Without a premium licence, the standard Outlook action Send an email (V2) can send a message through Email2SMS, but that is a single SMS, not a AlphaFlow event.
- One address for all cloud flows: the event is named in the body of each request.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose Microsoft Power Automate. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Add the HTTP action in Power Automate
- My flows → Automated cloud flow. Choose the trigger: Microsoft Forms When a new response is submitted, SharePoint, Excel or Outlook.
- For Microsoft Forms add the action Get response details first: the answers come from it.
- New step (or Add an action) → HTTP.
- Method —
POST; URI — the address from the cabinet; Headers —Content-Typewith the valueapplication/json. - Body — the body below. Replace the values in angle brackets with Dynamic content of the trigger; the two expressions stay as they are.
- Save → Test → Manually, then submit the form.
{
"event": "form_submitted",
"message_id": "pa:@{workflow()?['run']?['name']}",
"occurred_at": "@{utcNow()}",
"contact": {
"phone": "<Dynamic content: the question with the phone>",
"email": "<Dynamic content: Responders' Email>"
},
"traits": { "first_name": "<Dynamic content: the question with the name>" },
"properties": { "form": "<the name of the form>" },
"context": { "source": "power_automate" }
}
workflow()?['run']?['name']is the id of the run, somessage_idis unique for each response.utcNow()is the time of the run in UTC.event— fixed text, the name of the AlphaFlow event (see Events).contactneeds at least one of the phone, the email or the customer id. The phone may come in any notation.context.sourcestays as it is: by it the connection shows Recognised: Microsoft Power Automate.
The body is already in the AlphaFlow format, so nothing has to be mapped in the cabinet — see Event format.
Step 3. Send a test
Press Test → Manually and send a test response to the form. The event appears in
Flows → Connections → Event journal within seconds. The
connection shows Recognised: Microsoft Power Automate.
Events
| What starts the cloud flow | AlphaFlow event | Properties |
|---|---|---|
| A response to a form | form_submitted | form |
| A request or a lead | lead_submitted | — |
| A row in Excel or SharePoint about an appointment | appointment_scheduled | visit_at |
A name like order_paid or order_shipped goes only into a cloud flow whose trigger means exactly that, or behind a
Condition that checks the status, for example "Paid". A cloud flow on any change of a row or an item sends
order_status_changed with the status property: otherwise a partly paid order reaches the customer as "paid".
The contact is found by contact.phone and contact.email; traits.first_name is the name the texts greet with.
The names of the events are the ones the ready-made templates expect — see
Recommended events.
Good to know
- The HTTP action repeats a failed request by its retry policy (Retry Policy in the Settings of the
action); the number and the intervals of the repeats in Power Automate are not confirmed by the documentation. A
repeat inside one run has the same
message_idand is not recorded twice. utcNow()gives the time with seven digits after the second. That AlphaFlow reads this form has not been checked yet: if the journal showsinvalid_time, remove theoccurred_atline — AlphaFlow then takes the time of receipt.- The address answers
200with JSON, which suits the HTTP action. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; the cloud flow keeps running.
Microsoft documentation
- HTTP action — the page is written for Logic Apps; Power Automate has the same action
- Functions of expressions:
workflow(),utcNow()