cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Karlin
Level: Power Up

Book a room template broken?

Hi

Played around with the new MS PowerApps template Book a room. Promising and just what i've been looking for.

Unfortunately I get a warning message on the ButtonMeeting located at the LandingScreen. At the OnSelect-field there is an warningtriangle and if I hover over it it says (freely translated from Swedish) Office365.GetEventsCalendarViewV2 failed: The GetEventsCalendarViewV2 method has an invalid value in the calendarID parameter. Sort of.

This probably is the reason that the PowerApp does not work:

When I click the Book for an existing meeting none of my meetings show up.

If I click the Book without a meeting and proceed with a booking of a room (all our rooms are listed perfectly), the booking gets confirmed in the PowerApp, but it doesn't show up in the room calendar in Outlook.

Help. Please.

 

31 REPLIES 31
Community Support Team
Community Support Team

Re: Book a room template broken?

Hi @Karlin,

 

Just from the error message, it should be related to the Calendar parameter passed into the Office365.GetEventsCalendarViewV2 function.

 

Please check more details for the connector:

https://docs.microsoft.com/en-us/connectors/office365/#Get_calendar_view_of_events_(V2)

 

I will check it from my side and update here if I have more findings.

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Karlin
Level: Power Up

Re: Book a room template broken?

Thanks for the pointer @v-micsh-msft

Unfortunately I do not have the time to dive deep into any code troubleshooting.

Since I use the template OOTB with no alterations made, It's odd that it throws this error.

It's a pitty though, since the template seems to be very promissing.

MLB77
Level: Power Up

Re: Book a room template broken?

Hi,

do you find the solution?

 

Regards

PowerApps Staff C_Ian_Davis
PowerApps Staff

Re: Book a room template broken?

Hi there, I've been unable to reproduce your issue, but I've got a few solutions you might try:

 

1st: Check to make sure all of your connections are working. 'View' > 'Data sources' in the ribbon should open up the data panel. 

 

If any of your data sources look like this:

 

UnconnectedDataSources.png

 

Remove and reconnect them.

 

2nd: The code where the invalid value is being generated comes from the OnStart property of the app. Specifically the 3rd line from the bottom:

 

 

Set(MyCalendar, Lookup(Office365.CalendarGetTables().value, DisplayName = "Calendar").Name);

You may try turning that single statement into two lines. One to get the info from the API, and one to properly parse it:

Set(MyCalendars, Office365.CalendarGetTables().value);
Set(MyCalendar, LookUp(MyCalendars, DisplayName = "Calendar").Name);

And finally, if neither one of those solves your issue:

 

3rd: Add a refresh button on the start page of the app. Just add some kind of refresh icon and copy + paste the code from the OnStart property into the OnSelect property of your refresh icon. If the red banner flashes up, you can press the refresh button to force the app to grab your CalendarId, and then try again.

Gerard
Level: Powered On

Re: Book a room template broken?

I had the same error and posted it in a different thread. Please check your O365/EOL language. We're working in a Dutch tenant and "Calendar" is called "Agenda". so changing the string worked for me.

JonasBjo
Level: Powered On

Re: Book a room template broken?

Mine works but only presents 20 rooms - how can I increase that number?

PowerApps Staff C_Ian_Davis
PowerApps Staff

Re: Book a room template broken?

Hi Jonas,

 

See attached images. In the phone version, if you scroll to the bottom of the rooms list, there should be a 'More Rooms' button that you can press to grab another set of 20 rooms. In the tablet version, that button is on the right corner above the rooms gallery.

 

Let me know if you have any questions

JonasBjo
Level: Powered On

Re: Book a room template broken?

Really strange, both me and my collegue gets 20 rooms when there should be many more during that time... 

PowerApps Staff C_Ian_Davis
PowerApps Staff

Re: Book a room template broken?

Ahh yes, I'm pretty sure I know what the issue is... Give me a few days to get together a solution

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 387 members 5,072 guests
Please welcome our newest community members: