Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How to send Microsoft Teams invites when someone books a room (in the OnSelect function)

(0) ShareShare
ReportReport
Posted on by

 

Hello all!

 

I have a booking room app that has the following interface allowing users to book rooms at an office:

 

jharville_0-1625254215299.png

 

When a user clicks the "Book" button, it will reserve a time-slot in Outlook for the user for the room that they selected. However, I would also like to send out a unique Microsoft Teams invite to the user that booked the room. (I would think the formula would go in the 'OnSelect' function of the "Book" button)

jharville_2-1625255157017.png

 

Would anyone know what formula would send out a Teams Invite (linked to the Outlook time reservation that is already reserved when a user selects a room) to the user's email address when a button is clicked?

 

Thank you!

 

  • BCLS776 Profile Picture
    8,988 Super User 2025 Season 1 on at
    Re: How to send Microsoft Teams invites when someone books a room (in the OnSelect function)

    Could you share the code that runs when the meeting is confirmed on the ConfirmationScreen? Let's see what that is doing before we recommend further changes. 

  • jharville Profile Picture
    on at
    Re: How to send Microsoft Teams invites when someone books a room (in the OnSelect function)

    @BCLS776 

     

    I used your code and it sends out a separate Microsoft Teams meeting invite in my Outlook calendar. But when I book a room, it also sends a meeting reservation for that same time in Outlook, but without a Teams invite. So I have 2 invites, when I only need 1. 


    Instead of sending a separate Microsoft Teams invite, how do I format the automated Outlook meeting reservation to include a Teams invite link?

  • Verified answer
    BCLS776 Profile Picture
    8,988 Super User 2025 Season 1 on at
    Re: How to send Microsoft Teams invites when someone books a room (in the OnSelect function)

    You can use the Microsoft Teams connector, calling MicrosoftTeams.CreateTeamsMeeting() to do this. The function will need several arguments to respond correctly. See this document for the reference info.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard