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 Automate / How to get ID of Share...
Power Automate
Unanswered

How to get ID of Shared Calendar

(0) ShareShare
ReportReport
Posted on by 184

Hi, I am trying to find a way to get the ID of a calendar within a Microsoft Teams Team. I have tried using Microsoft Graph to return all calendars information assigned to me, and this works, however it does not include any Teams Channel Calendar. 

 

I have viewed other posts on this topic:

But they don't work and don't follow what I am trying to do.

 

I have a PowerApp which a user will enter their birthday. This birthday is recorded in a list and triggers a flow. This flow takes the birthday and creates an all-day birthday event in a Shared Calendar so everyone can see. I need your help in getting the ID of a Shared Calendar (or the ID of a Teams Channel Calendar [same thing]) so the event will be posted there (yes my account has permissions to create events in that calendar).

 

Thanks!

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Schwartz_Cory,

     

    The Get Calendar method in Graph API also supports GET /groups/{id}/calendar, have you tried that one?

    https://docs.microsoft.com/en-us/graph/api/calendar-get?view=graph-rest-1.0&tabs=http

     

    Try something like below:

    https://graph.microsoft.com/v1.0/groups/{id}/calendar?$select=id

     

  • Verified answer
    Schwartz_Cory Profile Picture
    184 on at

    Well I need the ID of the group to be able to run that command. I was finally able to find it by running the Graph command below which tells me what groups I am apart of.

    https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group?$count=true

     

    Once I ran that, I could find the ID of the group I am looking for, and then use your command to get the calendar's ID:

    https://graph.microsoft.com/v1.0/groups/{id}/calendar?$select=id

     

     

    From that I can get the ID of the shared calendar. So thank you there.

     

    My next problem I have now is power automate giving me an error when I try to use the ID when using the create-an-event action.

    😞

    Error: The specified object was not found in the store.
  • Schwartz_Cory Profile Picture
    184 on at

    This is an alternative solution I am currently attempting to resolve my error, so I will close out this forum.

     

    Solved: Get and create events in a shared calendars - Power Platform Community (microsoft.com)

     

    Thanks for your help!

  • Canadiancapper Profile Picture
    17 on at

    Hello,

     

    I am trying to also find the ID for a Teams Calendar so that I can copy events to another Teams Calendar. I am a member of both Teams, but I am unable to find the ID for the team using the 

    https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group?$count=true

    command.  I just get the following results

    Canadiancapper_0-1660170904889.png

    I have added all the consents I can think of, but I can't seem to get past this first hurdle.  Any help would be greatly appreciated as I have two Teams Channel Calendar Id's to find.

  • Schwartz_Cory Profile Picture
    184 on at

    To get the ID for a team your apart of, use this graph command here:

    https://graph.microsoft.com/v1.0/me/joinedTeams

    Pro Tip: Use CTRL+F to search for the name of your team. The ID will be the first one.

     

    Then, use that ID to search for the team's calendar ID

    https://graph.microsoft.com/v1.0/groups/{INSERT GROUP ID}/calendar?$select=id
  • Canadiancapper Profile Picture
    17 on at

    Thank you so much!  I now have a new issue, when I try and use the second search I get the following result:

    Canadiancapper_0-1660235405912.png

    I have given myself all the directory and calendar permissions, what other permissions do I need?  I am a global admin for my company??  Sorry this is the first time I have worked in graph and I am a bit lost on how it works.

     

  • Schwartz_Cory Profile Picture
    184 on at

    Not sure, I am not a global admin. I would make sure you are listed as an owner of the team. I think you can do this through Teams or Teams Admin Center.

     

    To get more then just the team's calendar id, you can also try using this code below:

    https://graph.microsoft.com/v1.0/groups/{INSERT GROUP ID}/calendar
  • keepitsimple Profile Picture
    44 on at

    Hi @Schwartz_Cory ,

    Can you please share which Action you used in the Flow to make it work?

    I am trying to use 'Send an HTTP request V2' for Groups, but it is not working with the URL that you have given.

     

    Thanks

  • keepitsimple Profile Picture
    44 on at

    Hi @Schwartz_Cory ,

    Can you please share which Action you used in the Flow to make it work?

    I am trying to use 'Send an HTTP request V2' for Groups, but it is not working with the URL that you have given.

     

    Thanks

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard