web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating an Event with...
Power Apps
Answered

Creating an Event with Recurrence

(0) ShareShare
ReportReport
Posted on by 31

I'm attempting to create resource room bookings that bulk upload from a SP List. I had this working at one point but now for some reason, it doesn't work. Right now it will work as long as I do not have recurrence in the code. Here is the working code without the recurrence.

 

ClearCollect(colUpload, ClassroomBookings);
ForAll(colUpload,
Office365Outlook.V4CalendarPostItem(
 CalID,
 Subject,
 Text(DateTimeValue(StartDateTimeCode),DateTimeFormat.LongDateTime24),
 Text(DateTimeValue(EndDateTimeCode),DateTimeFormat.LongDateTime24),
 "(UTC-05:00) Eastern Time (US & Canada)",
 {
 body:Body,
 Location:Location
 }
));

 

 Here is the non-working code (that once worked) with recurrence:

 

ClearCollect(colUpload, ClassroomBookings);
ForAll(colUpload,
Office365Outlook.V4CalendarPostItem(
 CalID,
 Subject,
 Text(DateTimeValue(StartDateTimeCode),DateTimeFormat.LongDateTime24),
 Text(DateTimeValue(EndDateTimeCode),DateTimeFormat.LongDateTime24),
 "(UTC-05:00) Eastern Time (US & Canada)",
 {
 body:Body, 
 Location:Location,
 recurrence:"weekly",
 selectedDaysOfWeek:[U,M,T,W,R,F,S],
 recurrenceEnd:RecurrenceEnd
 }
));

 

The date format for the recurrenceEnd is YYYY-DD-MM format and I have tried several other formats that don't seem to help. I also tried hard coding in the selectedDaysOfWeek and recurrenceEnd which still fail. With the code as is I get an error of :

 

Office365Outlook.V4CalendarPostItem failed: Cannot send undefined records to a service without risk of corrupting data.

 

 

Categories:
I have the same question (0)
  • Verified answer
    vDaddy78 Profile Picture
    31 on at

    As of this date it looks like there is an issue with the reccurance across multiple days. So for now I just made it to where recurrance is for only the single day. If I have something that is a M/W/F occurance there are now 3 seperate calendar entries created.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard