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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Getting a Calender ID
Power Apps
Unanswered

Getting a Calender ID

(1) ShareShare
ReportReport
Posted on by 58

I have a DropDown that gets its contents from  Office365Outlook.GetRoomsV2().value.  I believe this produces a table and it shows up in the DD list as a list of Resource Calendar Names.

 

I can use the function Office365Outlook.GetEventsCalendarViewV3(CalID,Start,end,...)  to get events from a specific calendar.

 

How can I get the ID for the selected Resource Calendar?

Categories:
I have the same question (0)
  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Are familiar with the Graph Api, typically this is something I would accomplish with that.

    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 AD application. Here are the steps to follow:

     

    1. Setup permissions: First, you need to set up permissions in the Azure Portal. Navigate to the Azure Active Directory application associated with your Power App and add the following permissions under 'API permissions' > 'Add a permission' > 'Microsoft Graph':

     

    Calendars.Read or Calendars.ReadWrite

    Room.Read.All or Room.ReadWrite.All

     

    1. Get Room List: Microsoft Graph API provides the /places API that can be used to get the list of rooms. Here is an example of the API call:

     

    GET https://graph.microsoft.com/v1.0/places/microsoft.graph.room

     

    The response will contain a list of room objects, and from that, you can select the 'address' property of the room you are interested in.

     

    1. Get Calendar ID: Use the following Graph API call to get the calendar of a room (or a user):

     

    GET https://graph.microsoft.com/v1.0/users/{room-email}/calendar

     

     

    Replace {room-email} with the email address of the room you got from step 2. The id property of the response will be the Calendar ID of the room.

     

    You can connect to the graph with these HTTP requests, and parse the JSON responses to get the required values. Remember to handle pagination if you have more rooms than fit in a single response page.

     

    Please note that, this approach requires the logged-in user to have appropriate permissions to read room and calendar information in your organization. Always ensure you're compliant with your organization's privacy and security policies.

  • JohnJDB Profile Picture
    58 on at

    Hi @AJ_Z 

    Thanks for the info.  Really interesting, but not sure how to apply to a PowerApp.

     

    Navigate to the Azure Active Directory application associated with your Power App

    Does PowerApps automatically create a Enterprise App?  I've had a look and cant see one. 
    Also, doesn't this give the user the rights to look at (and edit) all calendars?

     

     

    GET https://graph.microsoft.com/v1.0/places/microsoft.graph.room

    How do i call this and consume the response in PowerApps?

     

    Thanks !

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    I personally call it by triggering a cloud flow from Power Apps to Power Automate and use that to send the HTTP Requests. You need to create the App Registration in azure and query that. Lewis has actually released some recent blogs on how to do things like this with graph api: Displaying a room calendar in Power Apps using Graph API - Low Code Lewis that is one way to call graph api

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard