Hi All. Why does MS make simple things so difficult!
The difference between making a calendar event using the Outlook Connector and an event using the Groups Connector is staggering.
Using the Outlook Connector is simple - start dates, end dates, item body etc are all text values. Downside - Doesn't work for a Canvas App where more than one person has to write to the calendar (even if the other users have full permissions to the calendar etc - only I (the calendar owner) can write to it.
Now, using the Groups Connector - I've managed to create an event in a Group Calendar, that all members of the group can create, but there is NOTHING in the connector that allows getting / updating / deleting events!
Also, a lot of the values for body, location etc now have to be records, not just text! How on earth do I do that!! Below works OK, but it only works if the start and end date are in curly brackets, to make it into a record - even though that part doesn't say it has to be a record!!!
Set(
CreatedEventID,
(Office365Groups.CreateCalendarEventV2(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
'Staff NameL2_Value'.Text,
{
dateTime: FullStart.Text,
timeZone: DateTimeZone.Local
},
{
dateTime: FullEnd.Text,
timeZone: DateTimeZone.Local
},
{importance: "High"}
)).id
)
Trying to add :body before or after importance simply won't work as it wants a record value! Ridiculous.
Microsoft REALLY need to do some work on this connector, or post a proper guide for it's usage like they do for other connectors.