Outlookメールメッセージを取得のフィルターで本文検索したい

初心者質問で申し訳ございません。
Outlookメールメッセージを取得アクティビティにフィルターを掛けたいです。

メール本文に「りんご」という文字が含まれているもののみ抽出したい場合、フィルターにはどのように書けばよいのでしょうか。

件数が多いため出来れば繰り返しで1アイテムずつ取り出して中身を確認する作業はしたくないと考えています。

Hi @m-takeda1

=> Use Get Outlook Mail Messages and store the output in a variable say MailMessages.

=> Use the below syntax in Assign activity:

MailMessages = MailMessages.Where(Function(mail) mail.Body.ToString.Contains("apple")).ToList()

=> Use For Each loop to iterate through MailMessages variable and continue with further process.

Regards

1 Like

Hi @m-takeda1 ;

You can use as below

"@SQL=""urn:schemas:httpmail:textdescription"" like '%apple%'"

Regards,
Vinit Mhatre

1 Like

こんにちは

以下お試しください

"@SQL= urn:schemas:httpmail:textdescription LIKE '%りんご%'"
1 Like

この方法でも欲しい値が取得できました!
ありがとうございます。

欲しい値が取れました!
ありがとうございました

1 Like

欲しい値が取れました!
ありがとうございました!

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