cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BenjaminMartin
Helper I
Helper I

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
v-xida-msft
Community Support
Community Support

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
v-xida-msft
Community Support
Community Support

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

Thanks! That worked.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (31,277)