Hi All,
I have a button that deletes an event in Outlook and works just fine. If the event doesn't exist it should notify the user or at least exit. I'm not sure why but I cannot get the IfError function to work. Or maybe I should use something else? Code below. Thanks in advance for any help.

IfError(
With({idCalendarEntry:
First(
Office365Outlook.GetEventsCalendarViewV3(
_myCalendarId,
Concatenate(DatePicker1_1.SelectedDate, " ", If(Toggle1.Value=true,"00:00:00",TextInput7_1.Text)),
Concatenate(DatePicker1_2.SelectedDate, " ", If(Toggle1.Value=true,"23:59:59",TextInput7_2.Text)),
{search:Concatenate("Event: ",adsComboboxEvents_2.Selected.structureName)}
).value
)
},
Office365Outlook.CalendarDeleteItemV2 (
_myCalendarId,
idCalendarEntry.id
)), Notify ("Event Does not Exist in Outlook Calendar"))