Hi
I have created an app for event registration and am trying to remove events from users' calendar when they decide to cancel their registration. The code I am using is this:
Set(varUserCalendarlId,
LookUp(Office365Outlook.CalendarGetTablesV2().value,
name="Calendar").id
);
With({idCalendarEntry:
First(
Office365Outlook.GetEventsCalendarViewV3(
varUserCalendarId,
Text(DateTimeValue(StartDateTimeDataCardValue.Text,"en-GB"),DateTimeFormat.UTC),
Text(DateTimeValue(EndDateTimeDataCardValue.Text,"en-GB"),DateTimeFormat.UTC),
{search:"Auto-entry by sign-up App"}
).value
)
},
Office365Outlook.CalendarDeleteItemV2(
varUserCalendarId,
idCalendarEntry.id
)
)
I know that the code returns the correct calendar ID (I have used the same code for entering the even into participant's calendars and it works) but for some reason it does not delete the even even though I get no error messages either from PowerApps studio or when I run the app. Any ideas where the bug might be? Many thanks in advance