O365 Get Mail - Query Filter - Order By Received Date


I’m trying to get an order by filter applied to the O365 Get Mail activity.

The Graph API has this functionality, you can test it here: Use query parameters to customize responses - Microsoft Graph | Microsoft Learn

For example:
GET https://graph.microsoft.com/v1.0/me/messages?**$orderby=receivedDateTime**

I’ve tried adding different variations like:


However I always get this error:
Error Code: BadRequest
Message: Invalid filter clause

Anyone know the correct syntax, if something else needs to be done, or if this is just not possible with the UiPath activity?



Can you try UiPath.MicrosoftOffice365 activities package v1.10.0-preview?
There is OrderByDate property as the following.



1 Like

That’ll do the trick, thanks Yoichi.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.