Hi Team,
I am trying to filter in mails containing specific keywords.
Is there a way to pass multiple arguments for searching keyword in pst file using PersonalStorageQueryBuilder. Tried list and using ‘or’ does not seem to work. Also, is text.contains the right way to search if the keyword is either in subject or body? This doesnt seem to work, I get, “Proxy error: pst searching engine does not support “Text” as field name”. Is it possible to get only the filtered mails into new pst file?
Please help me with this
Code:
queryBuilder = PersonalStorageQueryBuilder()
queryBuilder.subject.contains(“Review” or “Error”)
queryBuilder.body.contains(“Review” or “Error”)
messageInfoCollection = folderInfo.get_contents(queryBuilder.get_query())
I also tried creating two instances of queryBuilder i.e. queryBuilder and queryBuilder1 and passing them into get_contents with or in between. That didnt work either.
I added a ticket with ID EMAILNET-40255 to our tracking system. Our development team will investigate this possibility. I will inform you of any news.
Yes, text.contains method must search for a text sample in the headers and body of a message. Could you share the PST file and code example reproducing the error, please?
@spidy007,
Our development team investigated your requirements for using multiple arguments for searching specific keywords in PST files. There are several ways to construct a query using a disjunction. All ways will lead to the same result.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.