Query parameter to fetch mails with PDF attachment only in GetMail activity


I am new to UiPath and have been trying to get the mails that contain PDF attachment only from outlook. Other mails that do not have PDF attachment should not be returned. I am trying to use GetMail activity of MicrosoftOffice365 and need help to provide this filter in query property. I came across this query( /me/messages?$search="attachment:api-catalog.md") in Use the $search query parameter in Microsoft Graph - Microsoft Graph | Microsoft Docs but not able to use it. Please guide.

1 Like

Hey @Meghna_Jain

Try using the below syntax please…

attachment eq 'api-catalog.md'


Hello, Thanks for your reply. But its not working. OData parameter must be followed it seems.