I added a calendar screen to my app but I want a function that allows the user to add an event to the calendar and a function that will allow the user to delete an event to the calendar.

I added a calendar screen to my app but I want a function that allows the user to add an event to the calendar and a function that will allow the user to delete an event to the calendar.
Hi @WatermelonCat ,
Could you please share a bit more about your scenario?
Do you want to add event or delete event within the Calendar screen?
Based on the needs that you mentioned, I think you need to customize your Calendar screen app. I have made a test on my side, please consider take a try with the following workaround:
Within your Calendar screen, add a "Remove" Icon within the CalendarEventsGallery1, set the OnSelect property to following:
Office365Outlook.CalendarDeleteItemV2(dropdownCalendarSelection1.Selected.Name, ThisItem.Id);
ClearCollect(MyCalendarEvents, Office365Outlook.GetEventsCalendarViewV2(_myCalendar.Name, Text(_minDate, UTC), Text(_maxDate, UTC)).value);
Add a "+" icon within the Header bar, set the OnSelect property to following:
Navigate('New Event Screen')
Within your 'New Event Screen', add a "Add" button, set the OnSelect property to following:
Office365Outlook.V2CalendarPostItem(
CalendarDropdown.Selected.Name,
SubjectBox.Text,
Text(StartDatePicker.SelectedDate + Time(Value(StartHour.Selected.Value), Value(StartMinute.Selected.Value),0), "[$-en-US]yyyy-mm-ddTHH:mm:ssZ"),
Text(EndDatePicker.SelectedDate + Time(Value(EndHour.Selected.Value), Value(EndMinute.Selected.Value),0), "[$-en-US]yyyy-mm-ddTHH:mm:ssZ"),
{
TimeZone:"(UTC+08:00) Kuala Lumpur, Singapore", /* <-- Specify your own local Time Zone value here */
Body: BodyBox.Text
}
);
ClearCollect(MyCalendarEvents, Office365Outlook.GetEventsCalendarViewV2(_myCalendar.Name, Text(_minDate, UTC), Text(_maxDate, UTC)).value);
Please take a try with above solution, check if the issue is solved. Please check the attached sample app for help.
Best regards,