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 Filter Issue
Power Apps
Answered

Book A Room Filter Issue

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

I'm trying to make the Save Button in the Adjust Date Screen filter conference rooms to show only the ones that begin with TSI. I put the same code on the Book without a Meeting button on the LandingScreen. It works there but not on the Save Button. Here's what I have for the Save Button (I also want it to filter out one named TSI Conference Rooms once it filters to just ones that start with TSI)

 

    ClearCollect(AvailableRooms, Office365.FindMeetingTimes({RequiredAttendees: AllRoomsConnector, IsOrganizerOptional: true,

        Start: StartDateTimeUTC, End: EndDateTimeUTC, MeetingDuration: DateDiff(StartDateTime, EndDateTime, Minutes),

        MinimumAttendeePercentage: "1", ActivityDomain: "Unrestricted"}));

 

    ClearCollect(AvailableRoomsSorted, SortByColumns(First(AvailableRooms).MeetingTimeSuggestions, "Confidence", Descending));

 

    ClearCollect(AvailableRoomsConcat, Concat(Filter(First(AvailableRoomsSorted).AttendeeAvailability, Availability = "Free"),

        Attendee.EmailAddress.Address, ","));

 

    ClearCollect(AvailableRoomEmails, Split(First(AvailableRoomsConcat).Value, ","));

 

    ClearCollect(AvailableRoomEmailName, AddColumns(RenameColumns(AvailableRoomEmails, "Result", "Email"), "Name",

        LookUp(AllRooms, Email = Address).Name));

 

    UpdateContext({ShowLoading: false});

    Set(RoomsLeft, CountRows(AllRooms) - 20 * AvailableRoomsCounter)                                               

);

 

ClearCollect(AvailableRoomEmails, Split(First(AvailableRoomsConcat).Value, ","));

ClearCollect(

             AvailableRoomEmailName,

             Filter( AllRooms, StartsWith(Name, "TSI") );

);

 

    Navigate(RoomSelectScreen, Cover)

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @BenjaminMartin1 ,

     

    Please try below codes:

    ClearCollect(AvailableRooms, Office365.FindMeetingTimes({RequiredAttendees: AllRoomsConnector, IsOrganizerOptional: true,
     Start: StartDateTimeUTC, End: EndDateTimeUTC, MeetingDuration: DateDiff(StartDateTime, EndDateTime, Minutes),
     MinimumAttendeePercentage: "1", ActivityDomain: "Unrestricted"}));
     ClearCollect(AvailableRoomsSorted, SortByColumns(First(AvailableRooms).MeetingTimeSuggestions, "Confidence", Descending));
     ClearCollect(AvailableRoomsConcat, Concat(Filter(First(AvailableRoomsSorted).AttendeeAvailability, Availability = "Free"),
     Attendee.EmailAddress.Address, ","));
     ClearCollect(AvailableRoomEmails, Split(First(AvailableRoomsConcat).Value, ","));
     ClearCollect(AvailableRoomEmailName, Filter(AddColumns(RenameColumns(AvailableRoomEmails, "Result", "Email"), "Name",
     LookUp(AllRooms, Email = Address).Name),StartsWith(Name, "TSI"));
     UpdateContext({ShowLoading: false});
     Set(RoomsLeft, CountRows(AllRooms) - 20 * AvailableRoomsCounter) 
    );
     Navigate(RoomSelectScreen, Cover)

     

    If you would like to filter rooms' names that contain TSI, use ["TSI" in Name] as the criteria instead of using [StartsWith(Name, "TSI")] within the collection "AvailableRoomEmailName" creation.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard