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

Community site session details

Session Id : DLyPl0YDKhtNHhAhwqZOZ9
Power Apps - Building Power Apps
Unanswered

Out of Office Power App Template Clear Conflicts Not Working Properly

Like (0) ShareShare
ReportReport
Posted on 31 Mar 2023 18:54:22 by 112

Hi Community:

 

I've used Miscrosoft's OOTB Out of Office Power App template to customize and created an app for my office to use.  I noticed that there is a little part that's mal-functioned and at the moment I can't seem to fix it.  I am hoping someone could help shed a light.

 

On the Clear Conflict screen, the design is to show a collection of events during the time that user blocks as "out of office", by default all the events are selected, when unchecked, one unselects all, can select only one or a few of those events to clear.  The problem is even when you unchecked the "all selection" then click to select a few of the events, by clicking the submit button, it will clear all events anyway, which defeats the purpose of clearing only selective events.  The codes look right to me, but the result is not, therefore I am asking if anyone would know how to fix it.

 

Here are the test screenshots.  As you can see, although I only selected one to clear, it still cleared all 3, and when going back to check OUTLOOK calendar, all 3 events on that day have been cleared, which was not what supposed to happen.

 

clear1.JPG

 

clear 2.JPG

 

clear 3.JPG

 

The codes on the "Select all conflicts" check box OnCheck:

 

 UpdateIf(EventConflicts, true, {Remove: true});
 Set(_clearAll, true)

 

 and on the OnUncheck:

 

UpdateIf(EventConflicts, true, {Remove: false})

 

The code on the ConflictsGallery individual item OnSelect:

 

Select(Parent);

 

The code on the "Clear x conflicts" button OnSelect:

 

Concurrent(
 //clears all selected events from calendar
 ForAll(EventConflicts, Office365.CalendarDeleteItem(_myCalendarID, Id)),
 Set(_clearedEventsCount, CountRows(EventConflicts)));
Navigate(SuccessScreen, BorderStyle.None, {_sendingInvite: false});
//Clears the ClearedEvents collection and refreshes the FutureCalendarEvents collection
Clear(EventConflicts);
ClearCollect(FutureCalendarEvents, Office365.GetEventsCalendarViewV2(_myCalendarID, Text(Now(), DateTimeFormat.UTC), Text(DateAdd(Now(), 90, TimeUnit.Days))).value)

 

 

Any help would be greatly apprecaited.

 

S

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2