Announcements
Hello all
i am using https://graph.microsoft.com/v1.0/me/messages?$top=1000 to get top 1000 emails..
Can I sort this output based on Received date..
@krishnakumar_R ,
I think that the easiest way is to delegate this task to Exchange online server with a Graph call like:
https://graph.microsoft.com/v1.0/me/messages?$top=100&orderBy=receivedDateTime asc
Hope it helps !
https://graph.microsoft.com/v1.0/me/messages?$top=1000
Can we take bottom 100 like Top 1000
No.
Microsoft must think all options 🙂
thanks @VictorIvanidze
https://graph.microsoft.com/v1.0/me/messages?$orderby=receivedDateTime desc & $filter=receivedDateTime gt 2023-03-22T00:00:00Z
how can we code date as todays date? (Red color need to be current date). Share any links, I can refer please
@VictorIvanidze @gabibalaban
There is no need for the second $ char, also it is recommended to use filter as first element in query:
https://graph.microsoft.com/v1.0/me/messages?$filter=receivedDateTime gt 2023-03-21T00:00:00Z & orderby=receivedDateTime desc
something like this.. This is failing
In compose 2, use dateTimeFormat(utcNow(),'yyyy-MM-ddT00:00:00Z') and in URI - only Outputs of compose.
Not sure what is wrong
https://graph.microsoft.com/v1.0/me/messages?$orderby=receivedDateTime desc & $filter=receivedDateTime lt addDays(utcNow(),+0,'yyyy-MM-ddT00:00:00Z')
i found out.. I hardcoded the value in compose statement.. I should have come via Dynamic Expression
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Mohsin Ali 299
11manish 274 Super User 2026 Season 2
Henil 119