cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Display of calendars inside PowerApps

Hi, I'm making a "Book a Room" type of app. I changed most of the template but i kept part of the structure.

The idea is to be able to book a meeting room via this app and not Outlook. The way it works is that you send a request to the room (which has an e-mail adress) and the person in charge accepts or denies your request. If accepted, it gets in your calendar and the room's calendar at the time and date submitted.

 

All of this works, but I wanted to add a button to display the calendar of the different rooms and it seems that with the usual GetCalendarTables, I only get the items in My Calendars wich are Calendar, Birthdays ...

 

I do not think it's possible but I might as well ask. Is there a way to display these calendars from power apps (ideally, an On Select trigger would open the selected calendar in Outlook but it could also be an event display on a dropdown or such).

 

Thanks in advance.

3 REPLIES 3
Highlighted
Super User
Super User

Re: Display of calendars inside PowerApps

 

 

On the onvisible property to to one of the booking screens there is a collect that be what you are looking for. 

 

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

Highlighted
Anonymous
Not applicable

Re: Display of calendars inside PowerApps

Hi,

 

Thanks for the response. I tried this formula but it does not seem to work. The collection is empty. Besides, PowerApps does not recognize the AllRooms connector. If I try to display the result of the collection, it just says Organizer Unavalaible.

 

Highlighted
Super User
Super User

Re: Display of calendars inside PowerApps

I was using the code from the meeting room app which I assume uses the defaults from Outlook.  It may be your organisation has a different table name for its global rooms or the  code might be based elsewher in the app.  I got it from the onvisible to the Select vacant Rooms view

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,842)