こんにちは。
Gmailに特定のメールアドレスから届いている添付ファイルを自分のフォルダに
ダウンロードしたいのですが、うまくできません。
Excelにメールアドレスのリストを用意。「セルの値を読み込み」でメールアドレスを変数”メアド”に格納し、「Gmailを使用」の中に「メールの添付ファイルを保存」を設置し、メールの項目に変数”メアド”を設定したのですが、変数の型をMailMessageにしないとエラーが出るため設定したところ、Excelからメールアドレスを格納できませんでした。
そもそもの考え方が間違えているのでしょうか?
よろしくお願いいたします。
1 Like
Anil_G
(Anil Gorthi)
July 2, 2023, 7:34am
2
@sayaka.y
You have to first get mail and then pass the output of get mail to the save email attachments
Cheers
1 Like
ありがとうございます。
メールの取得を送信者のメールアドレスを元に行う方法がわかりませんでした。
よろしくお願いいたします。
@sayaka.y
フィルターのフィールドに以下の式を試してみてください。
特定の送信者からのメールをフィルタリングします。
"[SenderEmailAddress] = '"+varEmail+"'"
特定の件名に基づいてメールをフィルタリングします。
"[Subject] = '"+varSubject+"'"
ここで、varEmailおよびvarSubject変数はString型です。
1 Like
Anil_G
(Anil Gorthi)
July 2, 2023, 12:58pm
5
@sayaka.y
As you are using use gmail activity…you have to use get email list activity inside it and there would be filter and once you click on it it will open a menu to show you the filters available…can add filter on the email…please check this for a detailed step by step process
https://docs.uipath.com/activities/other/latest/productivity/google-workspace-email-get-email-list-connections
Subsequently you can use this download activity
https://docs.uipath.com/activities/other/latest/productivity/google-workspace-email-download-attachments-connections
Cheers
1 Like
Yoichi
(Yoichi)
July 2, 2023, 1:23pm
6
こんにちは
繰り返し(各メール)アクティビティとそのフィルターを使うと良いかと思います。具体的には以下のようになると思います。
1 Like
詳しくお答えいただきありがとうございます!無事にできました!
1 Like
system
(system)
Closed
July 6, 2023, 3:47am
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.