Skip to main content

Notifications

Community site session details

Community site session details

Session Id : INOwOz5HRpFfdbkfSWy2Lb
Power Apps - Building Power Apps
Unanswered

Help getting the list of rooms in a roomlist

Like (0) ShareShare
ReportReport
Posted on 13 Oct 2019 03:28:28 by 11

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!

 

 

 

Categories:
  • McPowerPlatform Profile Picture
    38 on 10 Nov 2023 at 17:29:53
    Help getting the list of rooms in a roomlist

    I've solved this with two Collections,
    First :
    ClearCollect(testLocations,Office365Outlook.GetRoomListsV2().value);

    Then a New Collection:

    ClearCollect(RoomsOnlocation,

    Ungroup(
    ForAll(testLocations As Loc,
    Office365Outlook.GetRoomsInRoomListV2(Loc.address).value

    )
    ,"Value")
    😞

    let me know how this works for you



     

     

  • McPowerPlatform Profile Picture
    38 on 27 Jan 2023 at 14:54:49
    Re: Help getting the list of rooms in a roomlist

    I've solved this with two Collections,
    First :
    ClearCollect(testLocations,Office365Outlook.GetRoomListsV2().value);

    Then a New Collection:

    ClearCollect(RoomsOnlocation,

    Ungroup(
    ForAll(testLocations As Loc,
    Office365Outlook.GetRoomsInRoomListV2(Loc.address).value

    )
    ,"Value")
    😞

    let me know how this works for you



     

     

  • lvdp Profile Picture
    11 on 15 Oct 2019 at 04:34:18
    Re: Help getting the list of rooms in a roomlist

    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?

     

  • v-monli-msft Profile Picture
    on 14 Oct 2019 at 08:46:07
    Re: Help getting the list of rooms in a roomlist

    Hi @lvdp ,

     

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

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

     

    Regards,

    Mona

     

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!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started