
Announcements
I have an app where users select multiple meetings to be created.
I am putting their selections in a collection.
I want a button to go through the collection and create an MS Teams meeting for each entry.
Using the code below, I have the meetings being created. However, it takes the details of the first meeting and repeats them for the number of entries in the collection.
So if the user has selected 3 meetings with the following details
1 - Start = 18 July @ 10:00 AM, End = 18 July @ 11:00 AM, Subject = Meeting 1
2 - Start = 19 July @ 11:00 AM, End = 19 July @ 01:00 PM, Subject = Meeting 2
3 - Start = 20 July @ 10:00 AM, End = 18 July @ 11:00 AM, Subject = Meeting 3
It will create 3 meetings all for 18 July and all with the Subject of Meeting 1.
What am I missing to have it take the details from each of the meetings?
MicrosoftTeams.CreateTeamsMeeting(
// Find the persons calendar
LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name,
// Subject of the meeting
LookUp('1.2.1_WorkshopsSchedule',Title = varProjectRecord.ProjectID).WorkshopName,
// Bpdy
//{content: HtmlTextIntHandover.HtmlText, contentType: "html"},
{content: "Hi", contentType: "Text"},
// TimeZone
DropdownIntHandoverTimeZone_1.Selected.Value,
// Start
{dateTime: LookUp('1.2.1_WorkshopsSchedule', Title = varProjectRecord.ProjectID).DateStart },
// End
{dateTime: LookUp('1.2.1_WorkshopsSchedule', Title = varProjectRecord.ProjectID).EndWorkshop},
// Is this an onlint meeting
true,
// Dont change
"teamsForBusiness")
)