web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps Desk Bookin...
Power Apps
Suggested Answer

Power Apps Desk Booking Template Broken? Error with Office365.GetRoomsInRoomList() function?

(6) ShareShare
ReportReport
Posted on by 1
Hi all,
 
Is anyone else encountering issues with apps built on the Desk Booking Power Apps template?
 
I am getting an error when trying to load desks to a collection through the Office365.GetRoomsInRoomList() function. This was working on 6th March and now appears to not be working.
 
The below is a part of the error message I am receiving:

"message": "The response is not in a JSON format.",
"innerError": "Cannot read server response."
 
However nothing has been changed to edit the JSON format that is being received since yesterday.
 
Any thoughts appreciated or would be grateful to hear if other are experiencing the same issue
 
Many thanks,
Ethan
Categories:
I have the same question (0)
  • Suggested answer
    David Kocman Profile Picture
    5 on at
    Hi Ethan.

    I have also came across this error in our application based on the Book a room template. It uses Office365 connector, which seems to have become deprecated. 

    What I have done, to fix this, is to add a new connector Office365Outlook and use GetRoomsInRoomListV2 function.

    Hope this helps!
    David
  • boidos Profile Picture
    10 on at
    Hi David and Ethan, I have this issue as well, Did you change
     
    ClearCollect(AllRooms, Office365.GetRoomsInRoomList(RoomsListsGallery.Selected.Address).value)
     
    to 
     
    ClearCollect(AllRooms, Office365Outlook.GetRoomsInRoomListV2(RoomsListsGallery.Selected.Address).value)
     
    When I update as above I get an error with the Findmeetingtimes connector
     
     
        ClearCollect(AvailableRooms, Office365.FindMeetingTimes({RequiredAttendees: AllRoomsConnector, IsOrganizerOptional: true,
            Start: StartDateTimeUTC, End: EndDateTimeUTC, MeetingDuration: DateDiff(StartDateTime, EndDateTime, TimeUnit.Minutes),
            MinimumAttendeePercentage: "1", ActivityDomain: "Unrestricted"}));
     
    I get a response 
     
    "BadArgument",
          "message": "Attendees must be added if the organizer is optional",
     
     
    cheers
     
     
  • David Kocman Profile Picture
    5 on at
    Hi,
     
    I have actually deleted the Office365 connector altogether from the app and rewrote all connector actions with the Office365Outlook, so for your scenario, I have used the FindMeetingTimesV2 function.
     
    ClearCollect(AvailableRooms, Office365Outlook.FindMeetingTimesV2({RequiredAttendees: AllRoomsConnector, ... })),
    Note: the Office365Outlook V2 versions return names of attributes starting with lower case letter instead of capital letter.
     
    Hope this helps!
    David
  • JT-12031057-0 Profile Picture
    2 on at
    I too have this problem. I have updated the connector to Office365Outlook and updated to V2 of the formulas.

    I now get an error here:
     
    ClearCollect(AllRooms, AddColumns(RenameColumns(AllRooms, Result, Email), Name, LookUp(AllRooms, Email = Address).Name));
     
    A column named 'Email' already exists.
     
    A column named 'Name' already exists.
     
    Can anyone assist?
  • Suggested answer
    Alex James Profile Picture
    2 on at
    The cause of this is the depreciation of the Version 1 connectors, when changing over to version two you need to pay attention that the paths have slightly changed
     
    E.G 
    GetRoomsInRoomList
    value.Name
     
    GetRoomsInRoomListV2
    value.name
     
    These changes break a lot of different sections in the booking template
    First step is to go through and replace all of the connectors that are being used for collections
     
    Here are a few from memory that you need to change to V2
    App (OnSelect)
    GetRoomLists 
    GetRooms
     
     
    RoomSelectScreen(OnVisible)
    GetRoomsInRoomList
    FindMeetingTimes
     
     
    After Replacing these you need to go through and change all of the references to lowercase.
    easiest way to do this is with the App Checker, select the Formulas tab and it will tell you all the references that are broken.
     
    After fixing these the booking Page should work.
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard