, , ,

In this blog article we will see how we can send an SMS from the Dynamics CRM using the Power Automate and Twilio. Twilio is a third-party platform which has the capability to send / receive SMS, make calls, etc.

Let’s have a quick look at the steps involved in sending an SMS from the Dynamics CRM using Power Automate & Twilio.


Let’s take a scenario where an Applicant applies for a Program in CRM, then CRM application sends an SMS to the Applicant saying that you have “Successfully applied for a Program”.

Setup and configure Twilio

  1. Create a Twilio trial account in case if you don’t have a Twilio subscription.
  2. Create a trial phone number. This phone number we will use to send an SMS.
  3. Once we are done with the above two steps, we will get Account ID, Auth Token and Phone Number (refer Fig. 1). We will use these three parameters to configure the Power Automate to send an SMS.

(Fig. 1)

Configure Power Automate

  1. Navigate to Power Automate.
  2. Click on “My Flow” -> “Automate – From Blank” to create an Automate Flow from the scratch (refer Fig. 2).

(Fig. 2)

  1. Specify the Name of the flow and the trigger option. In this case we are using Dynamics 365 and it will trigger when a new record is created (refer Fig. 3).

(Fig. 3)

  1. Specify the Dynamics 365 Organization Name and Name of the entity (refer Fig. 4).

(Fig. 4)

  1. Choose an action. In this case we are using “Twilio” for sending an SMS whenever a new record is created (refer Fig. 5).

(Fig. 5)

  1. Specify the Connection Name, Account ID, Auth Token and click on Update (refer Fig. 6).

(Fig. 6)

  1. Configure the SMS parameters like “From Phone Number”, “To Phone Number” and “SMS Text” (refer Fig. 7).
    1. From Phone Number: Select from the Twilio phone number which we have created in the above section “Setup and configure Twilio”.
    2. To Phone Number: This we’ll be mapped to the Applicant’s mobile number.
    3. Text: This is where we have to mention actual message.

(Fig. 7)

  1. Navigate to your Dynamics CRM organization.
  2. Perform the action to trigger the Flow. In my case, we’ll create an applicant record in CRM (refer Fig. 8).

(Fig. 8)

  1. We are all set to send an SMS from the Dynamics CRM using Power Automate and Twilio.
  2. Here is the screen capture of SMS which I received (refer Fig. 9).

(Fig. 9)