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 / Getting events from Gr...
Power Automate
Unanswered

Getting events from Group Calendar

(0) ShareShare
ReportReport
Posted on by 1,393

I want to create a flow that will send an email once a week with a list of upcoming events from the calendar associated with a M365 Group. There is no action in the Office 365 Groups connector to get calendar events from a group calendar. I tried using that actions in the Office 365 Outlook connector ("Get events (v4)" and "Get calendar view of events"), but Group calendars don't show up in the drop-down of my calendars. 

 

I suspect that I could give one the O365 Outlook actions the ID (guid) of the Group calendar, it would work. However, there doesn't seem to be a way to get that. I've tried getting the group's properties (via Power Automate and Graph Explorer), but none of the methods has produced that calendar ID as an output.

Categories:
I have the same question (0)
  • Mari Profile Picture
    on at

    Hi! Have you tested this already: List calendars - Microsoft Graph v1.0 | Microsoft Docs?

  • ChadVKealey Profile Picture
    1,393 on at

    I didn't try that specifically, but I did use the Graph Explorer to "get all my calendars" (from the Outlook section) and it only returned those that listed under "My calendars" in Outlook (that is, my personal calendars and Planner calendars that I've "added to" my personal calendar), none of the calendars for any of my Groups/Teams show up.

  • Bigshow Profile Picture
    60 on at

    Hi all

    Has anyone found a solution to this? i too also want to be able to get group events and send them on an email on a regular basis

  • VictorIvanidze Profile Picture
    13,073 on at
  • mercobenitas Profile Picture
    14 on at

    I have it working; see below my flow.

     

    Step 1. Go to https://developer.microsoft.com/en-us/graph/graph-explorer and sign in with your credentials

    Step 2. Go to Section Groups

    Step 3. Go to "all groups I belong to (direct or indirect membership) with count" and 'Run query'. Then find the 'id' of the group with the SharePoint Group calendar, and copy or write this down.

    Step 4. Go to "group's events", use the id you just wrote down, then 'Run query'. In theory, you should see your group calendar events returned.

     

    Next, go to Power Automate and create a 'scheduled cloud flow'. The trick is to work with Action "Send an HTTP request" and use the URL from the Graph Explorer (in my example below I filter on all events with 'PTO' in the subject):

    https://graph.microsoft.com/v1.0/groups/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/events?$filter=contains(subject , 'PTO') and start/dateTime ge '@{utcNow()}'&$orderby=start/dateTime asc&$top=100

    My flow (I'm sure others can make it more efficient and look better, but it works for me)

     

    2022-12-13_14-36-56.png

    2022-12-13_14-37-35.png2022-12-13_14-37-56.png2022-12-13_14-38-49.png

     

    Let me know if you have questions.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

  • ChadVKealey Profile Picture
    1,393 on at

    Thanks! I'll have to give that a shot.

  • Community Power Platform Member Profile Picture
    on at

    Ok, I have the group ID, but I can not get past HTTP request.   

    Under OUTPUTS I see 

    {
      "error": {
        "code"400,
        "message""URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: me,users Objects: messages,mailFolders,events,calendar,calendars,outlook,inferenceClassification. Uri: https://graph.microsoft.com/v1.0/groups/0z00000z-0000-00zz-0zz0-0z000z00z0zz/events/?$filter=contains(subject%20,%20'PTO')%20and%20start/dateTime%20ge%20'2023-01-31T18:08:35.0648948Z'&$orderby=start/dateTime%20asc&$top=100",
        ................

    I see we can use spaces instead of %20, yes? 

    Does the group ID need {curly brackets} or quote marks, or just typed in as shown?   Number typed in here is fake for security reasons

    Could be a permission issue? or would that be a 500 error instead of 400?  I am running from inside the teams environment on the team with the calendar so that should be ok. 

  • VictorIvanidze Profile Picture
    13,073 on at

    It looks like you are using wrong "Send an HTTP request" action. It should be the one from "Office 365 Groups" connector.

  • venus_knight Profile Picture
    2 on at

    Can you specify the Schema for the Parse JSON? 

  • cdat Profile Picture
    2 on at

    mercobenitas, can you post the schema for the JSON parse? 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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard