I have an app that lists corporate events. It is driven from a sharepoint list with start and end dates.
I would like the users to be able to click a button in the app and add the item to their o365 outlook calendar.
I thought I got it working with the Office365Outlook connector, but unfortunately it will only add the item to the user that was configured for the connector (me). If another user logs into the app, it will always add to my calendar.
Can anyone else suggest how to do this? Maybe using powerautomate?
Set(varUserCalendarId,
LookUp(Office365Outlook.CalendarGetTablesV2().value,
name="Calendar").id
)
;
Office365Outlook.V4CalendarPostItem(
varUserCalendarId,
ThisItem.Title,
Text(DateTimeValue(ThisItem.'Start Time'),DateTimeFormat.UTC),
Text(DateTimeValue(ThisItem.'End Time'),DateTimeFormat.UTC),
"UTC"
)
