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 / Get Calendar Contents ...
Power Apps
Unanswered

Get Calendar Contents of a Team

(0) ShareShare
ReportReport
Posted on by 294

Hi,

I am trying to get the calendar contents from Sharepoint of any MSTeam. I would like to be able to select the calendar from a dropdown and have its contents displayed in a gallery. Is it doable? Solution must not use any premium connectors and should be low code/ no code (I'm not a techie by any means). Thanks!!

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @karimabdelrazek ,

     

    Could you please share more details about your scenario? What kind of calendar would you like to retrieve, SharePoint group site calendar list or O365 Outlook calendar?

     

    If you want to retrieve calendar apps from SharePoint group sites, which are just like lists, you could create connectors to connect with them:

    1. Choose Sharepoint connector

    70.png

    2. Choose a site

    71.png

    3. Type in the calender list name then check, click connect:

    72.png

     

    You could find the calendar name in Site contents.

     

    After connecting to all calendars of group sites, on the calendar contents screen, add a Drop down with the Items of a collection for users to select.

    [“Group1 Calendar”, “Group2 Calendar”, “Group3 Calendar”]

     

    Then you could use a Gallery with the Items:

     

    Switch(Dropdown.Selected.Value, “Group1 Calendar”, ‘Group1 Calendar’ , “Group2 Calendar”, ‘Group2 Calendar’ , “Group3 Calendar”, ‘Group3 Calendar’)

     

     

    Note:

    App users should be an owner or member in those groups and with the permission to edit so that it would be able to update or modify the calendars.

     

    If you want to retrieve all calendars of O365 teams from O365 outlook, I’m afraid there is no way to achieve your goal. Users could only get the teams list owned by themselves, you are not able to retrieve all teams into a dropdown for users to select. And user could only see calendar events owned by itself.

     

    Hope it helps.

     

    Best regards,
    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.
  • karimabdelrazek Profile Picture
    294 on at

    @v-jefferni Thank you so much for your prompt and detailed reply. We're almost there. My scenario is as follows:

    1. An Admin creates a Teams site for each customer using the "CreateATeam" function in the MSTeams Connector.
    2. In a separate step, employees are added to their Teams sites. A single employee can be a member of multiple Teams
    3. Using my PowerApp, I would like the employee to select the customer name from a dropdown and have the calendar events displayed in a gallery.

    I would like to try and avoid a manual step of entering calendar names into the list if that's at all possible.

    Many thanks!

  • v-jefferni Profile Picture
    on at

    Hi @karimabdelrazek ,

     

    You could use Microsoft Teams connector to get all teams:

    https://docs.microsoft.com/en-us/connectors/teams/#list-teams 

     

    Apply MicrosoftTeams.GetAllTeams().value on the Items of the Dropdown, then users would be able to see all teams they are a member of.

     

    Then on the gallery, you could use below formula:

     

    If(Dropdown.selected.displayName="TeamName1",CalendarTeamName1,Dropdown.selected.displayName="TeamName2",CalendarTeamName2,Dropdown.selected.displayName="TeamName3",CalendarTeamName3)

     

    You will have to add all calendar list names in that formula so that each user could find the proper calendar.

     

    Hope this helps.

     

    Best regards,
    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard