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 / How to check for confl...
Power Apps
Unanswered

How to check for conflict booking

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All, 

 

Can anyone advise how to check for conflict booking? This is for a room booking calendar, I want to filter the room if no booking yet for the selected date and time

 

I power apps, I have selection for start date and end date as well as selection for start time and end time. 
Since I'm capturing the date and time, I set startTime and endTime as below: 
Set(startTime, sDate_2.SelectedDate, DateTimeFormat.ShortDate) &" "& TimeValue(Text(sTime_2.Selected.Value)));
Set(endTime, eDate_2.SelectedDate, DateTimeFormat.ShortDate) &" "& TimeValue(Text(eTime_2.Selected.Value)));


I want to be able to filter the available rooms based from the startTime and endTime. I'm using this formula so far:

 

Filter(
Rooms,
Not(
Title in Filter(
'SharePointCal',
StartDateTime > startTime && EndDateTime < endTime
|| StartDateTime > startTime && EndDateTime > startTime
|| StartDateTime >= startTime && EndDateTime > startTime
|| StartDateTime < endTime && EndDateTime < endTime
).Rooms))

 

This allows me to books but not check for conflict. Any idea how to fix this, please? Thanks! 

Best regards,
Vanessa

Categories:
I have the same question (0)
  • PaulD1 Profile Picture
    2,914 on at

    How many bookings might you hold in your list. I don't think your formula is going to delegate, so even if you can work out your filters, they will stop working correctly once you reach the delegation limit (max of 2000).

    You might want to try using the 'Book a room' template in the Power Apps gallery which uses Outlook calendars rather than SharePoint lists. I think this approach will likely be superior for your needs.

  • Vanessasec Profile Picture
    23 on at

    Hi Paul, 

     

    I have a flow the deletes old booking so I make sure it's within the delegation threshold. I prefer using SharePoint list. Hopefully someone can help me find a solution to check for conflict booking. Thanks! 


    Best regards,

    Vanessa

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard