cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Can't GetRoomLists

I'm trying to create something similar to the Book a Room template app, but I'm not getting very far. I am trying to get a collection of rooms to fill of our organizations conference rooms. I copied some code from the Book a Room app, but I keep getting a blank collection. Any advice is greatly appreciated.

 

Code, run at app start:

ClearCollect(AllRooms, Office365.GetRoomLists().value);

 

Data Sources:

Office365

Office365Users

5 REPLIES 5
Highlighted
Responsive Resident
Responsive Resident

Re: Can't GetRoomLists

Hi Jlevwayside, DId you get a chance to check the data source does that have data? Regards, Pavan Kumar Garlapati
Highlighted
New Member

Re: Can't GetRoomLists

It is the same data source as in the Book a Room template app. That app can retieve the room list successfully.

Highlighted
Community Support
Community Support

Re: Can't GetRoomLists

Hi @jlevwayside ,

This formula is right.

I've made a similar test and not the same problem like your description.871.PNG

 

872.PNG

 

873.PNG

 

If you have no items in there then check the Connector and make sure the user chosen can access the Room List.

Here's a similar isse for your reference:

https://powerusers.microsoft.com/t5/General-Discussion/Getting-list-of-all-rooms/td-p/177565

 

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

Re: Can't GetRoomLists

@v-yutliu-msft Your method worked once I tied it to a button. It does not work if I have it in the "App" object within the "OnStart" hook. I would like these loaded at the start of the app, is that possible?

Highlighted
New Member

Re: Can't GetRoomLists

It also does not seem to work with the OnVisible section of a screen.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,840)