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!

@kn0ck

Try below expression to filter mails based on outlook body.

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

2 Likes

@lakshman

Its works! Thanks.

Could you explain how it work? Why sql?

1 Like

@kn0ck

For your reference please find the below thread.

Filter the Body of a Mail Item | Microsoft Learn

@lakshman

Thanks a lot!

1 Like

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