cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Exclude a Room in Book A Room

How do I exclude a room from available rooms in Book a Room? I don't want others to be able to book Site Design Team Schedule.

 

Rooms.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Exclude a Room in Book A Room

Hi @BenjaminMartin ,

Do you want to remove or hide the "Site Design Team Schedule" Room from the Available Rooms List?

 

Based on the needs that you mentioned, I think the Filter function could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:

6.JPG

Please go to the RoomSelectScreen, then modify the formula within the OnVisible property to following:

Set(CalendarFromSelectMeeting, false);
If(DateTimeRoomChange,
    ....
    ....
    ....
    ClearCollect(AvailableRoomEmails, Split(First(AvailableRoomsConcat).Value, ","));

    ClearCollect(AvailableRoomEmailName, Filter(AddColumns(RenameColumns(AvailableRoomEmails, "Result", "Email"), "Name", 
        LookUp(AllRooms, Email = Address).Name),Name <> "Room1")); // Modify formula here

    UpdateContext({ShowLoading: false});
    Set(RoomsLeft, CountRows(AllRooms) - 20 * AvailableRoomsCounter)
)

On your side, you should modify the ClearCollect(AvailableRoomEmailName, ....) formula as below:

ClearCollect(
             AvailableRoomEmailName, 
             Filter(                     // Add Filter formula here, exclude the "Site Design Team Schedule" Room
                      AddColumns(RenameColumns(AvailableRoomEmails, "Result", "Email"), "Name", 
        LookUp(AllRooms, Email = Address).Name),
                      Name <> "Site Design Team Schedule"
             )
);

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Exclude a Room in Book A Room

Hi @BenjaminMartin ,

Do you want to remove or hide the "Site Design Team Schedule" Room from the Available Rooms List?

 

Based on the needs that you mentioned, I think the Filter function could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:

6.JPG

Please go to the RoomSelectScreen, then modify the formula within the OnVisible property to following:

Set(CalendarFromSelectMeeting, false);
If(DateTimeRoomChange,
    ....
    ....
    ....
    ClearCollect(AvailableRoomEmails, Split(First(AvailableRoomsConcat).Value, ","));

    ClearCollect(AvailableRoomEmailName, Filter(AddColumns(RenameColumns(AvailableRoomEmails, "Result", "Email"), "Name", 
        LookUp(AllRooms, Email = Address).Name),Name <> "Room1")); // Modify formula here

    UpdateContext({ShowLoading: false});
    Set(RoomsLeft, CountRows(AllRooms) - 20 * AvailableRoomsCounter)
)

On your side, you should modify the ClearCollect(AvailableRoomEmailName, ....) formula as below:

ClearCollect(
             AvailableRoomEmailName, 
             Filter(                     // Add Filter formula here, exclude the "Site Design Team Schedule" Room
                      AddColumns(RenameColumns(AvailableRoomEmails, "Result", "Email"), "Name", 
        LookUp(AllRooms, Email = Address).Name),
                      Name <> "Site Design Team Schedule"
             )
);

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: Exclude a Room in Book A Room

Thanks! That worked.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,971)