cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lvdp
Frequent Visitor

Help getting the list of rooms in a roomlist

I need to display the list of rooms on a floor in a datatable for the currently selected room list.

I can display the list of room lists easily enough:

  • ClearCollect(Floors, Office365Outlook.GetRoomListsV2().value);
  • Created a droplist with Items = RoomLists.name

What I'm having trouble with is display the actual room names in a datatable when a given floor is selected. I've tried the following:

 

In the dropdown I have:
OnChange=ClearCollect(RoomsOnFloor, Office365.GetRoomsInRoomListV2(FloorDropDown.SelectedText.name).value);  Which generates an error when the droplist selection changes.

 

In the data Table (RoomsOnFloor) I have also tried:

Filter(RoomsOnFloor, Office365.GetRoomsInRoomListV2(Dropdown1.Selected.name).value)

 

Neither of which work for me.  Any suggestions would be welcome - I've spent days trying to figure this out!

 

 

 

2 REPLIES 2
v-monli-msft
Community Support
Community Support

Hi @lvdp ,

 

Please try to add ".name" after ".value".

https://docs.microsoft.com/en-us/connectors/office365/#get-room-lists-(v2)

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

So....
My On Start funtion is now :
ClearCollect(Floors, Office365Outlook.GetRoomListsV2().value);
ClearCollect(RoomsOnFloor, Office365Outlook.GetRoomsInRoomListV2("room list 1").value.name)

 

This givens me the Floors collection just fine, but lists nothing for the rooms on floor collection and it doesn't throw an error either.

I have also tried just using
Filter(RoomsOnFloor.name, Dropdown1.SelectedText.name)  where Dropdown1 is the floor list still no luck.


Any more ideas?

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,792)