cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dorinda
Impactful Individual
Impactful Individual

Teams Recurring Meeting using PowerApps

I have 95% of my code working in PowerApps to create a recurring Team Meeting and send the email and put it on the calendar.

 

The issue I am facing has to do with the recurrence on the correct day of the week and day of the week.  It keeps defaulting the the first Wednesday of the month even though I am selecting the third. 

Dorinda_0-1631226189973.png

 

Set(varShowSpinner, true);
Set(varMeeting,
MicrosoftTeams.CreateTeamsMeeting(
    /* users calendar, don't change*/
    LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name,
    /* Subject of the meeting, you can change*/ 
    inpSubject.Selected.MeetingName,
    //With Teams you need to declare the structure. Pretty sure you shouldn't need to change this
    {content: inpBody.Text, contentType: "html"}, 
    //Time Zone
    ddTimeZone.Selected.Value,
    //Meeting Start
    {dateTime: DateTimeValue(dpStart.SelectedDate & " " & ddHour.SelectedText.Value & ":" & ddMinute.SelectedText.Value & ddAP.SelectedText.Value)},
    //Meeting End 
    {dateTime: DateAdd(DateTimeValue(dpStart.SelectedDate & " " & ddHour.SelectedText.Value & ":" & ddMinute.SelectedText.Value & ddAP.SelectedText.Value) , Value(ddDuration.Selected.Value), Minutes)}, 
    //Is this an online meeting. Pretty sure you don't want to change this
    true,
    //I wouldn't know what else to change this to so leave it alone. 
    "teamsForBusiness",
    //everthing below is optional
    { 
    //The attendees. Separate with a ;
    requiredAttendees:Concat(Filter('Safety Meeting Attendees_1', MeetingName=inpSubject.Selected.MeetingName), Attendee.Email, ";"),
    //Optional attendees. Seperate with a ; 
    optionalAttendees: Concat(cbOptional.SelectedItems, Mail, ";"),
    //optional importance flag. Values: low, normal, or high
    location: {displayName: inpLocation.Text},
    importance:ddImportance.SelectedText.Value,
    //isAllDay accepts true or false
    isAllDay: tglAllDay.Value,

    //Create recurring meeting. Value: none, daily, weekly, monthly or yearly
    recurrence: { 
                        pattern: { 
                            type: "relativeMonthly", 
                            interval: 1, 
                            daysOfWeek: ddDayofWeek.Selected, 
                            index: ddIndex.Selected.Value
                        }, 
                        range: { 
                            type: "endDate", 
                            startDate: Text( 
                                dpStart.SelectedDate, 
                                "yyyy-mm-dd" 
                            ), 
                            endDate: Text( 
                                dpRecurEnd.SelectedDate, 
                             "yyyy-mm-dd"), 
                            recurrenceTimeZone: "Pacific Standard Time" 
                           // numberOfOccurrences: inpRecurTimes 
                        } 
                    } , 
     
    /*optional but I like reminders*/
    reminderMinutesBeforeStart: Value(ddRemindMin.SelectedText.Value),
    /*optional turning on the reminder*/
    isReminderOn: ckReminders.Value,
    //Status to use during the event: Value: free, tentative, busy, oof, workingElsewhere or unknown
    showAs: ddStatus.SelectedText.Value,
    /*optional getting a confirmation they accepted/rejected your meeting */
    responseRequested:ckReceipt.Value
    }
));
Set(varShowSpinner, false);

 I am excited because the recurrence is working at least just not in the exact way I was expecting, any guidance would be greatly appreciated.

2 REPLIES 2
Dorinda
Impactful Individual
Impactful Individual

Can anyone please help me with this?

Dorinda
Impactful Individual
Impactful Individual

Just an update from Microsoft, they do not have the ability to create a recurring teams meeting on a specific occurrence in the month.  Meaning if you want the meeting to occur once a month on the third Wednesday of each month.  You can do part of it with Office365Outlook.V4CalendarPostItem, and if you want to write a custom connector using MS Graph you can possibly do it that way.  I don't know how to do this.  I have tried using Power Automate and it is limited to just a recurring monthly meeting on a specific date like the 22nd of each month but not able to use the third Wednesday of each month.  

 

This is very frustrating when you are trying to automate processes because if you create the Team Meeting then only the Organizer of that meeting will have access to the attendance.  If that person leaves you lose that functionality.

 

If any one has any suggestions they would be appreciated.  I am stuck!

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,443)