Graph API: Creating Room Calendar Display in Power Apps
Image Source:
Power Apps
Oct 19, 2022 8:40 PM

Graph API: Creating Room Calendar Display in Power Apps

by HubSite 365 about Lewis Baybutt [MVP]

Power Platform Consultant 💬 at HybrIT Services | Low Code Lewis 👨🏻‍💻 | Microsoft 365 | Power Platform | SharePoint | Dynamics 365 | #CommunityRocks 🚀

Citizen DeveloperPower AppsM365 Hot News

Unlock the power of Microsoft Graph API in Power Apps to display your room calendar effortlessly. Become an expert with our guide.

Recently, Microsoft Most Valuable Professional (MVP) Lewis Baybutt shared his approach to displaying a room calendar in Power Apps using the Graph API, Power Automate, an Azure App Registration, and an Azure AD. His project necessitated access to any meeting room's calendar, which required an appreciable amount of permissions in his tenant.

Users wishing to achieve the same results must first create an app registration in Azure Active Directory (AD) with the appropriate API permissions and a client secret for access. Next, the user will need to assign relevant API permissions from Microsoft Graph, such as Calendars.Read. In this step, it is essential to have Global Admin privileges in Azure AD. The next steps involve certifying and creating a client secret to assure authorized information access.

After the appropriate permissions and registration, it's time to apply them in actual development. Users will need to head over to Power Apps and create a solution. A new Canvas App is recommended, which will require data for operation. In the given project, the author leverages an environment variable for the room ID parameter, making the app usable across any meeting room.

Flow Creation and HTTP Step

User will need to create a flow and a PowerApps (V2) trigger to manage the inputs. In the flow, a GET method HTTP call is used to retrieve the required data and the output of the step is returned to the app as an 'Events' output. Authentication is achieved using Active Directory OAuth.

The URI (Uniform Resource Identifier) in the GET request is replaced with a user ID from Azure AD. The author uses this approach because it facilitates the use of the app to view different calendars based on input parameters. It is now also possible to add request headers to this process.

Fun with Authentication and App Content Response

The HTTP request is filled with the requested information. The advanced options show the need for Active Directory OAuth authentication. Several modifications and settings are required, such as setting the Authority to and pointing the tenant ID towards the app registration overview, titled "Directory (tenant) ID." This section also outlines the need to establish client ID and credentials, authenticating against the app registration.

The author provided an overview of how to create a gallery using numerous properties and 'Events' as Item. The ParseJSON function is used after this to return an untyped object and handle the JSON structure.

Lastly, users need to locate the room ID in under Azure Active Directory users since it will be used to launch the app. By appending this ID to the app's URL and opening it, calendar events should start appearing. With this method, users can conveniently create an app that displays a room’s calendar bookings in Power Apps, primarily useful for kiosk devices.

Read the full article Displaying a room calendar in Power Apps using Graph API

Power Apps - Graph API: Creating Room Calendar Display in Power Apps

Learn about Displaying a room calendar in Power Apps using Graph API

Microsoft Power Apps offers an impressive platform to build and design interactive apps without the need of extensive prior coding experience. In this context, the detailed blog post demonstrates how to display a room calendar in Power Apps by leveraging Graph API, which enables retrieving crucial data that your app needs in real time.

Thus, if you wish to learn more about this topic, there are specific Microsoft-related courses you might find beneficial. Microsoft offers varied training and certification programs, such as Microsoft Certified: Power Platform Fundamentals. This program enables you to develop core foundation-level knowledge about Power Platform, including the capabilities of Power Automate and Power Apps.

In addition, Pluralsight also provides a course titled "Building Business Applications with Power Apps and Flow," in which you'll understand how to create applications in Power Apps from the very basics. You'll also learn how to use Microsoft's Graph API and other tools and services which pivot around Power Apps and its exciting applications.

A quick way to further your understanding, especially of Graph API, is to explore Microsoft's own Graph API documentation. This resource covers everything from API basics to detailed step-by-step instructions on various complex real-world scenarios. Further, the GitHub community related to Graph API is very active, and you'll constantly find new projects, solutions, and inspirations for your Power Apps projects.

For a hands-on understanding, try replicating the steps mentioned in the blog post. This allows you to receive an in-depth view of how Power Automate, Azure, and the Graph API interplay to create a room's calendar visibility in Power Apps.

Another accessible and effective avenue for learning is a host of video tutorials available on platforms like YouTube, where experts around the world share their knowledge freely. Channels like Shane Young's "Power Apps Training" could prove to be resourceful.

Finally, after having familiarized yourself with these technical aspects and enhanced your proficiency through multiple channels of learning, you'll be able to effectively replicate the results of the blog post. Additionally, you can extend the flexibility of Power Apps and Graph API further to create more advanced applications or improve the existing one based on your specific requirements.

Remember, trial and error is a significant part of learning. So, don't hesitate to experiment, explore various features, and attempt different scenarios while working with Power Apps and Graph API!

More links on about Displaying a room calendar in Power Apps using Graph API

Displaying a room calendar in Power Apps using Graph API
Nov 26, 2022 — This method best works with tablet devices set up as Windows kiosks where the URL is specified in setup and is always launched when powering on ...
Getting a Calender ID - Power Platform Community
Jun 9, 2023 — Using the Microsoft Graph API, you can obtain the calendar ID of a room. However, before doing so, you need to have proper permissions configured in your Azure ...
Displaying a room calendar in Power Apps using Graph API
This button displays the currently selected search type. When expanded it provides a list of search options that will switch the search inputs to match the ...


Power Apps Room Calendar, Graph API, Display Room Calendar, Power Apps Display, Power Apps Graph API, Graph API Calendar, Room Calendar Graph API, Power Apps Calendar Display, Using Graph API, Room Calendar Power Apps