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

Community site session details

Session Id : E0XSMA5jgmENudupvixQN6
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 2 Jul 2021 19:48:29 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!

 

I have the same question (0)
  • BCLS776 Profile Picture
    8,990 Moderator on 14 Jul 2021 at 04:21:38
    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 14 Jul 2021 at 03:56:18
    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,990 Moderator on 03 Jul 2021 at 03:50:54
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 892 Most Valuable Professional

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 310 Super User 2025 Season 2

Last 30 days Overall leaderboard