I was able to use the following code to post item in outlook
Office365Outlook.V4CalendarPostItem(
// lookup user's calendar
//LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name,
_myCalendarID,
// subject of meeting
"Work Space " & workspaceNo & " reserved ",
// The time the reservation started
DateAdd(startTime, TimeZoneOffset(), Minutes),
// The time the reservation ended
DateAdd(endTime, TimeZoneOffset(), Minutes),
//The timezone for the reservation
"(UTC) Coordinated Universal Time"
);
And use the following code to get the last event id.
Set(_eventID,Last(Sort(Office365Outlook.V4CalendarGetItems(_myCalendarID).value,createdDateTime)).id);
The code was working fine until today I got this error message.
Office365Outlook.CalendarGetTablesV2 failed: {"status":404,"source":"https://msmanaged-na.token.azure-apim.net:443/tokens/unitedstates-002/office365/e5453269e4f545dc915c41dfa354fbba/exchange","message":"Error from token exchange: The connector is not found. Please contact support or connector owner to enable it again."}
Please help.