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 / Check multiple rooms f...
Power Apps
Unanswered

Check multiple rooms for double booking

(0) ShareShare
ReportReport
Posted on by

I am using this in the OnSelect of a button to check for preventing double booking in a SharePoint calendar:

 

If(
IsBlank(
With(
{_SelectedStartTime: DateTimeValue($"{DateValue1.SelectedDate} {HourValue1.Selected.Value}:{MinuteValue1.Selected.Value}"),
_SelectedEndTime: DateTimeValue($"{DateValue2.SelectedDate} {HourValue2.Selected.Value}:{MinuteValue2.Selected.Value}")},
LookUp(
Conf_Room,
Room.Value = DataCardValue3.Selected.Value &&
((_SelectedStartTime >= 'Start Time' && _SelectedStartTime < 'End Time') ||
(_SelectedEndTime > 'Start Time' && _SelectedEndTime <= 'End Time') ||
(_SelectedStartTime <= 'Start Time' && _SelectedEndTime >= 'End Time'))
))),
SubmitForm(Form1),
Notify(
"There is already a scheduled meeting in this room at this time. Please select another time",
NotificationType.Error
))
 
This issue is that I have several rooms that require multiple checks. If room 123A&B is selected for a specific time, I need it to check room 123A and 123B and 123A&B. If room 123A or 123B is selected it also needs to check 123A&B
 
If this is possible, any help figuring it out is appreciated.
Categories:
I have the same question (0)

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
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard