Skip to main content

Notifications

Power Automate - Building Flows
Answered

O365 Group HTTP Request

Posted on by 87
I'm using the O365 Group action to send an HTTP request to get events from a group calendar for a specific date. The query used is:
 
https://graph.microsoft.com/v1.0/groups/<groupID>/events?$filter=start/dateTime gt '2024-11-21T00:00:00.0000000' and start/dateTime lt '2024-11-22T00:00:00.0000000'&$orderby=start/dateTime asc
I notice that this only returns 10 items. I've tried using top=20 but it doesn't seem to work:
 
https://graph.microsoft.com/v1.0/groups/<groupID>/events?$filter=start/dateTime gt '2024-11-21T00:00:00.0000000' and start/dateTime lt '2024-11-22T00:00:00.0000000'&$orderby=start/dateTime&$top=20 asc
and gives a BadRequest error.
 
Is there a way to return more than 10 items using this action?
  • Verified answer
    EKarim Profile Picture
    EKarim 10,290 on at
    O365 Group HTTP Request
    Also, I think the filter should use ge (greater than or equal to) and the dates could be simplified by removing the time stamps to filter for all events on the 2024-11-21:

    $filter=start/dateTime ge '2024-11-21' and start/dateTime lt '2024-11-22'
     
     
    https://graph.microsoft.com/v1.0/groups/<groupID>/events?$filter=start/dateTime ge '2024-11-21' and start/dateTime lt '2024-11-22'&$orderby=start/dateTime asc&$top=20
     


    Ellis
  • VictorIvanidze Profile Picture
    VictorIvanidze 11,840 on at
    O365 Group HTTP Request
    Looks like wrong syntax. Try this:
     
    https://graph.microsoft.com/v1.0/groups/<groupID>/events?$filter=start/dateTime+gt+'2024-11-21T00:00:00.0000000'+and+start/dateTime+lt+'2024-11-22T00:00:00.0000000'&$orderby=start/dateTime+asc&$top=20
    
     
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard