Hi,
I'm trying to understand why the Book-a-Room app from Microsoft is failing all the time when there's no room available inside a group. Here does the error happen:
ClearCollect(AvailableRooms; Office365.FindMeetingTimes({RequiredAttendees: AllRoomsConnector; IsOrganizerOptional: true;
Start: StartDateTimeUTC; End: EndDateTimeUTC; MeetingDuration: DateDiff(StartDateTime; EndDateTime; Minutes);
MinimumAttendeePercentage: "1"; ActivityDomain: "Unrestricted"}));
The error is:
Office365.FindMeetingTimes failed: {
"error": {
"code": "BadArgument",
"message": "Attendees must be added if the organizer is optional",
"details": [
{
"code": "UnsupportedScenario",
"target": "IsOrganizerOptional",
"message": "Attendees must be added if the organizer is optional"
}
]
}
}
Anyone with any clue how I can deal with this error? I tried to use the new IfError function:
IfError(
ClearCollect(AvailableRooms; Office365.FindMeetingTimes({RequiredAttendees: AllRoomsConnector; IsOrganizerOptional: true;
Start: StartDateTimeUTC; End: EndDateTimeUTC; MeetingDuration: DateDiff(StartDateTime; EndDateTime; Minutes);
MinimumAttendeePercentage: "1"; ActivityDomain: "Unrestricted"})), Notify("No rooms available.", Error));
But keep getting 'The formula contains 'ParenClose' where 'Error' is expected'
So any help is highly appreciated!