How to work Filter property with Body in Get Outlook Mail Messages

Hello all,

I can use this filter: “[Subject]=‘text’”.

But how to get messages where, for example, Body contains some text?

“[Body]=‘text’” and “[contents]=‘text’” dont work.

Thanks for advice!


Try below expression to filter mails based on outlook body.

"@SQL=urn:schemas:httpmail:textdescription like ‘%text%’"



Its works! Thanks.

Could you explain how it work? Why sql?

1 Like


For your reference please find the below thread.

Filter the Body of a Mail Item | Microsoft Docs


Thanks a lot!

1 Like

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