cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Outlook Schedule Recurring Meeting

Hi All,

 

We are using PowerApps to schedule recurring outlook meetings using the function "V4CalendarPostItem" with the below parameters in the snapshot

However, the code only creates one meeting.

 

Any help would be much appreciated

 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Outlook Schedule Recurring Meeting

Hi @sumitmukund ,

Please consider take a try to achieve your needs using Office365Outlook.V2CalendarPostItem(...) function. I have made a test on mu side, please consider take a try with the following workaround:

3.JPG

Set the OnSelect property of the "Post Event" button to following:

Office365Outlook.V2CalendarPostItem(
                                    Dropdown1.Selected.id, 
                                    Subject.Text, 
                                    Now(), 
                                    DateAdd(Now(), 2, Hours), 
                                   {
                                      Body: Body.Text, 
                                      Recurrence:"Daily",
                                      RecurrenceEnd: DateAdd(Now(), 2, Days), 
                                      TimeZone:"(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi", 
                                      NumberOfOccurrences:2
                                   }
)

The calendar events created successfully as below:

4.JPG

 

On your side, you should modify your formula as below:

Set(FollowUpStart, Now());
Set(FollowUpEnd, DateAdd(Now(), Value(Duration.Selected.Value), Minutes));
Office365Outlook.V2CalendarPostItem(
                                    MyCalendarID, 
                                    txtSubject.Text, 
                                    FollowUpStart, 
                                    FollowUpEnd, 
                                   {
                                      Body: Agenda.Text, 
                                      Recurrence: "Daily",
                                      RecurrenceEnd: DateAdd(Now(), 2, Days), // Please note here. Here you need to type date time value rather than Text value
                                      TimeZone: "Arabian Standard Time", 
                                      NumberOfOccurrences: 2
                                   }
)

Please note that the Start time and End time of the event must be within one day, the End time of the event could not across the current day, otherwise, it could not be compatible with the recurrence functionality.

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Outlook Schedule Recurring Meeting

HI @sumitmukund ,

Could you please share a bit more about your scenario?

Do you want to create a recurrence event in your Outlook calendar using Office365Outlook function in PowerApps app?

 

Based on the formula that you provided, I think there is something wrong with it. Please consider modify your formula as below:

Set(FollowUpStart, Now());
Set(FollowUpEnd, DateAdd(Now(), Value(Duration.Selected.Value), Minutes));
Office365Outlook.V4CalendarPostItem(
                                    MyCalendarID, 
                                    txtSubject.Text, 
                                    FollowUpStart, 
                                    FollowUpEnd, 
                                    "(UTC-05:00) Indiana (East)", // Modify formula here. Picked up from avaiable time zone values
                                     {
                                         recurrence: "daily",  // Modify formula here. Picked up from available options
                                         numberOfOccurences: 2, 
                                         recurrenceEnd: Text(dtMeetingEndDate.SelectedDate),
                                         body: Agenda.Text
                                     }
)

Note: The values for the timeZone argument and recurrence argument should be picked up from the available options as below:

2.JPG

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Advocate I
Advocate I

Re: Outlook Schedule Recurring Meeting

@v-xida-msft Thanks a lot for your response.

Yes we are trying to schedule recurring calendar events using powerapps.

We tried the approach but no luck and we are getting the error in the snapshot.

 

Code:

Office365Outlook.V4CalendarPostItem(
MyCalendarID,
txtSubject.Text,
FollowUpStart,
FollowUpEnd,
"Arabian Standard Time",
{
requiredAttendees: MeetingAttendees.Text,
body: Agenda.Text,

recurrence:"weekly",

recurrenceEnd:Text(DatePicker1.SelectedDate)
}
);image.png

 
 
Highlighted
Community Support
Community Support

Re: Outlook Schedule Recurring Meeting

Hi @sumitmukund ,

Please consider take a try to achieve your needs using Office365Outlook.V2CalendarPostItem(...) function. I have made a test on mu side, please consider take a try with the following workaround:

3.JPG

Set the OnSelect property of the "Post Event" button to following:

Office365Outlook.V2CalendarPostItem(
                                    Dropdown1.Selected.id, 
                                    Subject.Text, 
                                    Now(), 
                                    DateAdd(Now(), 2, Hours), 
                                   {
                                      Body: Body.Text, 
                                      Recurrence:"Daily",
                                      RecurrenceEnd: DateAdd(Now(), 2, Days), 
                                      TimeZone:"(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi", 
                                      NumberOfOccurrences:2
                                   }
)

The calendar events created successfully as below:

4.JPG

 

On your side, you should modify your formula as below:

Set(FollowUpStart, Now());
Set(FollowUpEnd, DateAdd(Now(), Value(Duration.Selected.Value), Minutes));
Office365Outlook.V2CalendarPostItem(
                                    MyCalendarID, 
                                    txtSubject.Text, 
                                    FollowUpStart, 
                                    FollowUpEnd, 
                                   {
                                      Body: Agenda.Text, 
                                      Recurrence: "Daily",
                                      RecurrenceEnd: DateAdd(Now(), 2, Days), // Please note here. Here you need to type date time value rather than Text value
                                      TimeZone: "Arabian Standard Time", 
                                      NumberOfOccurrences: 2
                                   }
)

Please note that the Start time and End time of the event must be within one day, the End time of the event could not across the current day, otherwise, it could not be compatible with the recurrence functionality.

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,528)