Skip to main content

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.

Written from Microsoft documentation

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​

  1. Open Flows → Connections, press Connect a system and choose Microsoft Power Automate.
  2. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN> — keep it secret.

Step 2. Add the HTTP action in Power Automate​

  1. My flows → Automated cloud flow. Choose the trigger: Microsoft Forms When a new response is submitted, SharePoint, Excel or Outlook.
  2. For Microsoft Forms add the action Get response details first: the answers come from it.
  3. New step (or Add an action) → HTTP.
  4. Method — POST; URI — the address from the cabinet; Headers — Content-Type with the value application/json.
  5. Body — the body below. Replace the values in angle brackets with Dynamic content of the trigger; the two expressions stay as they are.
  6. 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, so message_id is unique for each response.
  • utcNow() is the time of the run in UTC.
  • event — fixed text, the name of the AlphaFlow event (see Events).
  • contact needs at least one of the phone, the email or the customer id. The phone may come in any notation.
  • context.source stays 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 flowAlphaFlow eventProperties
A response to a formform_submittedform
A request or a leadlead_submitted—
A row in Excel or SharePoint about an appointmentappointment_scheduledvisit_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_id and 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 shows invalid_time, remove the occurred_at line — AlphaFlow then takes the time of receipt.
  • The address answers 200 with JSON, which suits the HTTP action. Above the daily event limit the event is refused in AlphaFlow with quota_exceeded and shown in the journal; the cloud flow keeps running.

Microsoft documentation​