
Announcements
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.
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.