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

Book A Room: Error with connection to calendars

Hello!

 

I am trying to use the Book a Room app to book meetings in the calendar of a resource.

I have several problems.


First, Office365.GetRooms() does not recognize the calendars/rooms in resources, but only shows the rooms available in the folder All Rooms, and those are not what I am trying to reach. How can I get the rooms from resources?

 

Second, I can't book meetings even on the  rooms showed, because there is a problem with the calendar_id in the function Office365.V2CalendarPostItem. The calendar_id in this function reffers to the MyCalendar variable:

Office365.V2CalendarPostItem(MyCalendar, User().FullName & "'s Skype Meeting", StartDateTimeUTC, EndDateTimeUTC, {Body:"<a href="&SkypeMeeting.JoinUrl&">Join Skype Meeting</a>", 
            IsHtml:true, Location: "Online Meeting", Importance: "Normal", ShowAs: "Busy"})),

The MyCalendar variable is defined in the OnStart property of the App like this:

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

I have tried putting the name of the calendars I want to reach in the DisplayName, but nothing works, I always end up with a variable without value in it, which is probably why the following functions that reffer to this variable doesn't work.

 

I have also tried to use the function Office365.V3CalendarPostItem on a blank app just to test if I could write in the calendar that I want as I wish, but I can't figure out what to put on the calendar_id parameter. I have tried the name of the calendars and their e-mail address but nothing works.

 

I couldn't find solutions to my problem either by looking on the forum. I have began to program not too long ago so I may be doing some dumb mistakes. Hope someone can help me!

 

Best regards

2 REPLIES 2
TopShelf-MSFT
Level 10

Re: Book A Room: Error with connection to calendars

Bumping for visibility 

 

@TopShelf-MSFT 

Anonymous
Not applicable

Re: Book A Room: Error with connection to calendars

Thank you.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,702)