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?
Hi Jliv, do you know what the time zone of Mexico is?
Thanks to the post here @RusselThomas solution I got it to work!
and
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}
)
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473