top of page

Connect SMS to Microsoft Power Automate
A low code way to connect SMS to Microsoft apps & more

Enhance productivity and optimise processes by using Microsoft Power Automate.

With Microsoft Power Automate, you can connect SMS Everyone to desktop apps and websites with AI, digital and robotic process automation.

To connect SMS Everyone with Microsoft Power Automate, you'll need an SMS Everyone account. Sign up for a free trial and we'll give you a username, password and originator. Be sure to let us know on the sign up form that you need to set up 'Microsoft Power Automate'

Now lets get started.

From here on, we will refer to Microsoft Power Automate as "MPA"

First create your trigger in MPA.

In this case below, we are going to connect SMS Everyone to an Office 365 calendar so it sends an SMS to a staff member when an event is created, moved or modified.

(imagine a staff member is booking appointments for you and you want an alert every time something is added to your calendar)

In MPA , click "Create" (top left)

SMS for Microsoft power automate
create new in microsoft power automate

Scroll down and select 'Office 365 Outlook'

sms for office 365

Then select 'When an event is added, updated or...'

when an event is added, updated or...

It will create a flow with just the trigger selected. Be sure to set the Calendar ID to the preferred calendar to make the 'invalid parameters' alert go away.

Next press the + sign below the Office 365 trigger and select 'Add an action'

Type in the search box 'HTTP'

Scroll down the results to the HTTP section and select the one that is just called HTTP

power automate HTTP

It will create a flow with just the Office 365 trigger selected. Be sure to set the Calendar ID to the preferred calendar to make the 'invalid parameters' alert go away.

Next press the big + sign below the Office 365 trigger and select 'Add an action'

office 365 trigger

When all the options appear on the left, type in the search box 'HTTP'

Scroll down the results to the HTTP section and select the one that is just called 'HTTP'

These are the parameters you will need:

URI = https://smseveryone.com/api/campaign

Method = POST

Headers

You need 2 headers: Authorization and Content-Type

Authorization | Basic [Put your username and password base 64 encoded like this username:password]

 

Example: Authorization   | Basic x5sjs7afa4shs7sfsus67jjs

Content-Type | application/json

Body

{
"Message": "Put your message here (note you can personalise by adding parameters from the trigger)",
"Originator": "Use only the origin we give you",
"Destinations": [
"Put the desired destination here"
],
"Action": "create"
}

Leave all other fields blank.

Below is an example:

image.png

A few things to note:

If you need help getting your username and password into the correct base 64 encoded format, contact us and we can help.

In the message body, to add parameters to the message, when you're typing in the 'body' box, you'll see a little lighting bolt icon on the right. Click this and it will give you all the parameters you can use.

add parameters to body in power automate

Then just make sure your cursor is in the right spot and select the parameter you need. For example, you might put the Calendar subject and start time in the message...

image.png

Once you have the HTTP field all filled in, save the flow.

you may need to sign up for a free trial of Power Automate to complete this step.

When you save it, if you see this message...

image.png

...you are ready to test.

Go to your Office 365 calendar and add a new calendar appointment.

within say 30 seconds you should get an SMS to the phone you specified in 'Destinations'

 

WHAT IF IT FAILS?

If you don't receive a message, in MPA click on 'Test' (top right)

Click on 'Automatically' then 'With a recently used trigger' and select the most recent trigger:

test sms in microsoft power automate

When it runs, it will tell you in the flow diagram where the issue is.

in this case you'll see it says 'Bad Request' in the HTTP section.

bad request power automate

Click on the section with the issue, then scroll down on the left to OUTPUTS and look for the error in the Body:

http error in power automate

So in this case, the error is with the originator. We used a different originator to what is allowed/registered to the SMS Everyone account. When we set the originator to the correct one, the flow works: 

your flow ran successfully

If you need any further assistance with this, contact us.

If you would like to give this a try, sign up for a free trial below.

bottom of page