web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Twilio - Automatic App...
Power Automate
Unanswered

Twilio - Automatic Appointment Reminders 1 day in advance

(0) ShareShare
ReportReport
Posted on by

Apologies if this is not the right board.

 

Currently I am trying to setup a Flow that scans a Calendar for upcoming Appointments (1 day in advance) and sends an SMS message (via Twilio - currently configured with no issues) to the person that appointment is for.

 

Our external scheduling software can be imported into an Outlook Calendar. It generates a unique Number (called an MR #) assigned only to that person that is included in the body of the event once imported.

 

If I create a sharepoint list that includes their mobile number and and their MR # in separate columns, how would I configure the Flow to conditionally search the Body of the upcoming for that MR #, if that MR # matches the MR # in the Sharepoint list, send an SMS via Twilio to the Mobile Number associated with the MR #. 

 

Or in other terms I want the Flow to look like:

 

[When an Event is Upcoming - 1440minutes look ahead] - if [Event Body] CONTAINS [ANY MR# from Sharepoint List] then Send a Twilio SMS to [Mobile Number Associated with MR #]

 

I hope this is not confusing to understand. It has been plaguing me for weeks!

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    on at

    Hi @Anonymous,

     

    How does the event body look like? What’s the column type of the MR# in SharePoint list?

     

    I have made a simple flow for your scenario, please take it for a reference.

     

    The event body contains just a MR#, and the MR# in the SharePoint list is of type Single line of Text.

    2.PNG

     

    Note: To get the unique MR# in the event body, make sure the MR# is always placed in the same place so that you could extract them from the body properly. And let's say that the MR# are in the same length.

     

    And for testing, I used the trigger “When an event is added, updated or deleted”, you could change it to the trigger “When an event is coming soon” on your side.

     

    Then use the action Html to text to convert the email body to plain text.

     

    In action Compose, use the following function:

    length(body('Html_to_text'))

     

    In action Compose1, use the following function:

    add(indexOf(body('Html_to_text'),'MR#:'),4)

     

    In action Compose2, use the following function:

    substring(body('Html_to_text'),outputs('Compose_2'),sub(outputs('Compose'),outputs('Compose_2')))

     

    Then Get items from SharePoint list.

     

    Add a Condition to check if the items from the list contains the unique number returned from Compose3.

     

    If yes, send Text message(SMS).

     

     

    1.PNG

     

     

    Best regards,

    Mabel Mao

  • Community Power Platform Member Profile Picture
    on at

    This is very helpful. 

    The MR # in the body looks like "Client Appointment with MRN XXXX" (MRN is always a 4 digit Number). The Column type for the MR # in the list is a Single Line of Text.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard