Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

(1) ShareShare
ReportReport
Posted on by

Good tuesday,


I am currently struggling with filtering the avaliable roomnames in my roomsgallery to only display rooms that have the name "RS_KS4950"

hotdogman_0-1720531902185.png

 

  • madlad Profile Picture
    2,637 Super User 2025 Season 1 on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    @hotdogman Where is the code you've shown here? It looks like you have the toggle selected?

    It needs to be in the galleries Items property.

     

    You can also see more on the filter function here

     

    Let me know!

  • hotdogman Profile Picture
    on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    hotdogman_0-1720551732694.png

     

  • hotdogman Profile Picture
    on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    The code doesn't show any errors but it's not filtering the gallery

    hotdogman_0-1720551672741.png


    Sad days : , (

  • madlad Profile Picture
    2,637 Super User 2025 Season 1 on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    @hotdogman 

    RoomName seems to be a control, try replacing it with Name

  • mmbr1606 Profile Picture
    12,112 Super User 2025 Season 1 on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    try this instead:

    Filter(AvailableRoomEmailName, Text(RoomName) = "RS_KS4950")
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings
     

  • hotdogman Profile Picture
    on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    hotdogman_0-1720532971912.png

    I get this error message when I try to type it in

     

  • madlad Profile Picture
    2,637 Super User 2025 Season 1 on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    @hotdogman 

    The code I provided should accomplish this- However, If you have an alternate filter condition to use when the filter is untoggled, you can replace the 'true' in my original code with this. If you want to filter using  "RS_KS4950_1" instead, you can just replace the string in my original code with that.

     

    Hope this helps!

  • mmbr1606 Profile Picture
    12,112 Super User 2025 Season 1 on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    hey @hotdogman 

     

    can u try this:

     

    Filter(AvailableRoomEmailName, RoomName = "RS_KS4950")
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • hotdogman Profile Picture
    on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    I think one thing I'm overlooking right now is that "RS_KS4950" is the building name, "RS_KS4950_1" the "1" represents the floor level, and "RS_KS4950_1_HotDagMan" represents the the room name. 

    I want to display all those avaliable room names that have the "RS_KS4950" when I turn on the toggle

     

  • madlad Profile Picture
    2,637 Super User 2025 Season 1 on at
    Re: Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

    Hi!

     

    I hope I understand correctly, you only want to use this filter when the toggle is selected? If so, try something like:

     

    Filter(
     AvailableRoomEmailName,
     If(
     Toggle1.Value,
     "RS_KS4950" in Name,
     True
     )
    )

     

    "If(Toggle1.Value, "RS_KS4950" in Name,True)" Is used here, so that If Toggle1 is checked, it will filter as you've specified. Otherwise it will return all results.

     

    Please note you may have a delegation issue here, which could become a problem if more than 2000 records will be in play.

     

    Hope this helps! 🙂

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard