What is Microsoft Power Automate (Flows)?
Microsoft Power Automate (formerly known as Microsoft Flow) is a powerful cloud service that helps you create automated workflows (called Flows) between your favourite apps and services to synchronise files, get notifications, collect data, and more.
Power Automate lets you bridge the gap between different software, triggering an action in one app based on an event in another.
Why Use Power Automate for SMS?
Integrating Power Automate with the TNZ REST API allows you to automate SMS communication based on events happening in your Microsoft ecosystem and beyond.
This is highly beneficial for:
-
Notifications: Send an immediate SMS to a customer when a form is submitted, an invoice is paid in Dynamics 365, or a task is assigned.
-
Workflows: Automate sending an SMS confirmation after a new entry is created in a SharePoint list.
-
Communication: Use SMS in your communications strategy without writing custom code for every application.
Integration Possibilities with Power Automate
Power Automate is designed to work with a vast array of services and applications, allowing you to use almost any event as a trigger to send a TNZ SMS. Some of the most common applications include:
-
Microsoft Dynamics 365: Trigger an SMS notification when a Lead is qualified, a Case is updated, or a Sales Order is created.
-
Microsoft Forms: Send an automated SMS to the submitter (if they provide their number) or an internal team when a new survey or support request is submitted.
-
SharePoint: Send an alert when a new item is added to a List or a document is approved in a Library.
-
Outlook: Send an SMS alert for an urgent email from a specific sender.
-
Other Services: Connect to hundreds of services like Twitter, Salesforce, Dropbox, and more.
Setting Up a Flow to Trigger a TNZ SMS
To send an SMS, you'll use the HTTP action within Power Automate to make a POST request to the TNZ SMS API endpoint.
Note: The HTTP actions are typically a premium feature and requires a Power Automate license.
1. Access Power Automate
Go to the Power Automate portal and sign in with your Microsoft account.
2. Create a New Flow

-
Enter a Flow name (e.g., "SMS Sender").
-
Choose your desired trigger. For testing, select Manually trigger a flow and click Create.

3. Add the HTTP Action
-
Click + New step.
-
Search for HTTP and select the standard HTTP action (ensure you are using the core HTTP action, not a specific one like 'Office 365 Outlook | Send an HTTP Request').
-
Click on the HTTP action to expand it.

4. Configure the HTTP Action (Code View)
To ensure the structure is correct, it's best to start in Code view.
5. Finalize Configuration (Parameters Tab)
6. Save and Test the Flow
Setting Up a Flow to Check for Received SMS Messages
TNZ can fire a webhook when a message is received. Use the Power Automate HTTP Request function to catch and report on these webhooks.
Note: The HTTP actions are typically a premium feature and requires a Power Automate license.
1. Access Power Automate
Go to the Power Automate portal and sign in with your Microsoft account.
2. Create a New Flow
-
Select + Create from the left navigation pane.
-
Choose Instant cloud flow (you can later change this to an automated flow based on your desired trigger).
-
Enter a Flow name (e.g., "SMS Receiver").
-
Select When an HTTP request is received and click Create.

3. Add the HTTP Action
-
Click on the HTTP step ("manual")
- Rename the step (e.g. "Receive SMS Webhook from TNZ")

- Set Who can trigger the flow to Anyone
- Select the Code view tab and paste the following JSON data:
-
Set up an appropriate Action, such as Adding a row into a spreadsheet table.

-
Save the Flow.
-
Open the Receive SMS Webhook from TNZ step and copy the HTTP URL.
4. Use the new Webhook URL
Finally, you'll need to tell TNZ about your new Webhook URL.
Setting a Webhook as your Default Reporting Method
You can set up your API user to specify the Webhook by default.
Follow this guide: Configuring API Webhooks
Setting a Webhook when Submitting a Message
You can specify the Webhook URL when submitting a message.
For example, modify your Send SMS flow and add these fields to the Body: