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 : ft3TKki9cR+QzQNAYTmxvR
Power Apps - Building Power Apps
Answered

Create Microsoft Teams Meeting on Power Apps

Like (0) ShareShare
ReportReport
Posted on 26 Oct 2021 09:40:35 by 42

I tweaked the meeting template screen to add a button that creates a team's meeting with the following code- 

MicrosoftTeams.CreateTeamsMeeting(LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name, TextMeetingSubject1.Text, {content: TextMeetingMessage1.Text, contentType: "html"}, "local", Text(DateAdd(DateTimeValue(_selectedMeetingTime.StartTime),-TimeZoneOffset(),Minutes)),Text(DateAdd(DateTimeValue(_selectedMeetingTime.EndTime),-TimeZoneOffset(),Minutes)), true, "teamsForBusiness", Concat(MyPeople,UserPrincipalName&";"), true, true, true);

 

Error: invalid number of arguments. Not sure what to tweak?

  • EliotM95 Profile Picture
    7 on 28 Mar 2023 at 16:05:19
    Re: Create Microsoft Teams Meeting on Power Apps

    Hi Jliv, do you know what the time zone of Mexico is?

  • Verified answer
    Jliv Profile Picture
    42 on 26 Oct 2021 at 17:06:24
    Re: Create Microsoft Teams Meeting on Power Apps

    Thanks to the post here Getting the Right Date and Time For Teams Meeting Invite and @RusselThomas solution I got it to work!

     

    Code: MicrosoftTeams.CreateTeamsMeeting(
    /*Uses calendar, dont change*/
    LookUp(Office365Outlook.CalendarGetTables().value,DisplayName="Calendar").Name,
    /*subject of the meeting*/
    TextMeetingSubject1.Text,
    /*With Teams you need to declare the structure*/
    {content: TextMeetingMessage1.Text, contentType: "html"},
    /*TimeZone*/
    "Central Standard Time",
    /*meeting start time*/
    {dateTime: _selectedMeetingTime.StartTime},
    /*meeting end time*/
    {dateTime: _selectedMeetingTime.EndTime},
    /*IS this an online meeting? Don't change this*/
    true,
    /*don't change this either*/
    "teamsForBusiness",
    //attendees
    {requiredAttendees:MeetingPeopleGallery1.Selected.UserPrincipalName}
    )

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete