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 / Book a room with filter
Power Apps
Answered

Book a room with filter

(0) ShareShare
ReportReport
Posted on by 32

Hi all,

I'm new in Powerapps. I just created app with "Book a room" template. But, I need som help.
I would like to use this app only for booking a special room "Parkering". And don't want show other rooms available.

I have tried many different filters, but none of them work for me. Can someone give me a good guide.

Parking.JPG
Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    On Visible property of RoomSelectScreen should be modified and look like this:

       

     If(
        !NoRoomsList,
                   ClearCollect(
                              AllRooms,
                              Filter(
                              Office365.GetRoomsInRoomList(RoomsListsGallery.Selected.Address).value,
                              Name = "Parking"
                               )
                         )
         );   

     

  • Sanu Profile Picture
    32 on at

    Hello Gabibalaban,
    Thank you for your quick respons. But, its not working for me. 
    I think some think issue in "RoomsListsGallery"???

    Sanu_0-1599488191741.png


    And not showing any rooms

    Sanu_1-1599488252492.png

    Any tips??????

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    There is another place we should modify the code (because you don't have room lists defined in your tenant):

     

    So, go to OnStart property of the app and replace the code:

    ClearCollect(AllRooms, Office365.GetRooms().value)

    with

    ClearCollect(AllRooms, Filter(Office365.GetRooms().value,Name="Parking"))

     

    Please leave the previous modification unchanged, in case you'll define some room lists in your tenant.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Sanu ,

    Could you please share a bit more about your scenario?

    Do you want to only display the "Parkering" room in your 'Book a Room' template app?

     

    If you want to only display the "Parkering" room as available room in your 'Book a Room' template app, I think the Filter formula you specified is correct. Please modify the formula within the OnVisible property of the RoomSelectScreen as below:

    3.JPG

     

    Please note that, the OnVisible property of the screen would be fired only when you switch from another screen to current screen. So please consider save your canvas app, and then re-load your canvas app, then check if the issue is fixed.

     

    Note: Please make sure you have fired the OnVisble property of the RoomSelectScreen in your canvas app properly.

     

    Regards,

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @v-xida-msft , @Sanu 

     

    I'm pretty sure that the solution proposed above will not meet your expectation.

    Please be aware that you don't have defined room lists inside the tenant. To meet your goals the modification should be made also here:

     

    gabibalaban_0-1599551945537.png

     

  • Sanu Profile Picture
    32 on at

    Hello again,

    I did exactly as you said, but no response. I get the list of all available rooms anyway.Parking5.JPG

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Please read my last post ... The problem is from OnStart property of the app.

  • Sanu Profile Picture
    32 on at

    Now I have modified both "OnStart" & "OnVisible", but no luck ☹️Parking6.JPG

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Sanu ,

    I agree with @gabibalaban 's thought almost. Also please consider modify the corresponding formula within the OnStart property of App. Then re-load your canvas app. Check if the issue still exists.

     

    In addition, also please consider re-create a new canvas app in Tablet Layout based on your 'Book A Room' template, then check if the same issue still exists..

     

    Regards,

  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    You made the modification elsewhere. 

    Here we talked about AllRooms collection, not RoomLists collection.

     

    Please see the attach !

    Parking6.jpg

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard