web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add and remove events ...
Power Apps
Answered

Add and remove events on calendar screen

(0) ShareShare
ReportReport
Posted on by 39

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. 

Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    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:

    5.JPG

     

    6.JPG

     

    7.JPG

    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard