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 APP STOPS ...
Power Apps
Answered

BOOK A ROOM APP STOPS DISPLAYING ROOMS

(1) ShareShare
ReportReport
Posted on by 130

Book A Room App stops showing all my available rooms for not reason. Only show my top room listed, Meaning only one room comes up. If there any changes that we need dont know? I created a new one from the Template and it's doing the same.

Please help, I did everything at my end and can't resolve this issue. All Available rooms show up in Outlook, no issue there.

 

Thanks, Learn IT

Here is the code:

Set(IsPrevRoomSelect, false);
If(DateTimeRoomChange,
Set(AvailableRoomsCounter, 1);
UpdateContext({ShowLoading: true});
Set(RoomsLeft, Blank());
If(!NoRoomsList,
ClearCollect(AllRooms, Office365.GetRoomsInRoomList(RoomsListsGallery.Selected.Address).value)
);
Set(DateTimeRoomChange, false);
/*
If(CountRows(AllRooms) > 20,
Set(AllRoomsConnector, Concat(FirstN(AllRooms, 20), Address & ";"));
If(CountRows(AllRooms) > 40,
Set(AllRoomsConnector1, Concat(LastN(FirstN(AllRooms, 40), 20), Address & ";"))
),
Set(AllRoomsConnector, Concat(AllRooms, Address & ";"))
);
*/
Set(AllRoomsConnector, Concat(FirstN(AllRooms, 20), Address & ";"));


Concurrent(
ClearCollect(AvailableRooms, Office365.FindMeetingTimes({RequiredAttendees: AllRoomsConnector, IsOrganizerOptional: true,
Start: StartDateTimeUTC, End: EndDateTimeUTC, MeetingDuration: DateDiff(StartDateTime, EndDateTime, Minutes),
MinimumAttendeePercentage: "1", ActivityDomain: "Unrestricted"})),

If(CountRows(AllRooms) > 20,
If(CountRows(AllRooms) > 40,
Set(AllRoomsConnector1, Concat(LastN(FirstN(AllRooms, 40), 20), Address & ";")),
Set(AllRoomsConnector1, Concat(LastN(AllRooms, CountRows(AllRooms) - 20), Address & ";"))
);
ClearCollect(AvailableRooms1, Office365.FindMeetingTimes({RequiredAttendees: AllRoomsConnector1, IsOrganizerOptional: true,
Start: StartDateTimeUTC, End: EndDateTimeUTC, MeetingDuration: DateDiff(StartDateTime, EndDateTime, Minutes),
MinimumAttendeePercentage: "1", ActivityDomain: "Unrestricted"})
),
Clear(AvailableRooms1)
)

);
If(CountRows(AllRooms) > 20,
Collect(AvailableRooms, AvailableRooms1)
);
ClearCollect(AvailableRoomsSorted, SortByColumns(First(AvailableRooms).MeetingTimeSuggestions, "Confidence", Descending), If(CountRows(AllRooms) > 20, SortByColumns(Last(AvailableRooms).MeetingTimeSuggestions, "Confidence", Descending)));

ClearCollect(AvailableRoomsConcat, Concat(Filter(First(AvailableRoomsSorted).AttendeeAvailability, Availability = "Free"),
Attendee.EmailAddress.Address, ","), If(CountRows(AllRooms) > 20, Concat(Filter(Last(AvailableRoomsSorted).AttendeeAvailability, Availability = "Free"),
Attendee.EmailAddress.Address, ",")));

ClearCollect(AvailableRoomEmails, Split(First(AvailableRoomsConcat).Value, ","), If(CountRows(AllRooms) > 20, Split(Last(AvailableRoomsConcat).Value, ",")));

ClearCollect(AvailableRoomEmailName, AddColumns(RenameColumns(AvailableRoomEmails, "Result", "Email"), "Name",
LookUp(AllRooms, Email = Address).Name));
UpdateContext({ShowLoading: false});
Set(RoomsLeft, CountRows(AllRooms) - 40 * AvailableRoomsCounter)
);
Clear(AvailableRooms);
Clear(AvailableRooms1)

 

oneroom.PNG
code.PNG
Categories:
  • Verified answer
    LEARN_IT Profile Picture
    130 on at

    Anyone using this template app has any issue?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am having the same issue with office365outlook.findmeetingtimes, only the first attendeeavailability is showing value (free/tentative/busy), the others showing 'Unknown'.  My app works perfectly on Monday and issue started on Tuesday 11/10/2022. Tried the meeting capture app and findmeetingtimes from graph-explorer, and both are behaving the same too. Keen to know if there was any update from Microsoft recently or a bug or anything I need to update from my app. Thanks.

  • boidos Profile Picture
    10 on at

    Having the same issue here. Booking works in Outlook but in PowerApps it only shows the first result in the roomlist. Checking the collections and the monitor, all rooms are being discovered when the query is run Office365.GetRoomsInRoomList, but when the query FindMeetingTimes is sent only one row is returned. It sees the availability status of the first workspace as free and the rest of the workspaces as unknown.

  • martinkubik Profile Picture
    15 on at

    Hi all, we have the same problem here. We also tested it with a newly created app and it is the same there.

    Screenshot 2022-10-13 at 11.29.20.png

  • ramon_glez Profile Picture
    6 on at

    I am having the same issue with office365outlook.findmeetingtimes and API graph.findmeetingtimes since last 3 days. 

     

  • DanielTaylor Profile Picture
    26 on at

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard