繰り返し(Excelの各行)とメールからURLの取得について

UiPath初心者になります。
RPAの動きとして、指定した条件にあっているメールからURLを取得し、URL先から品番コードを取得→Excelの品番コード列に転記→該当のメールを既読にする。の流れです。

Excel(繰り返しの各行)とメールからURLを取得の関係性について知りたいのですが、申請したいものが5つ。条件にあった未読メールは1つと仮定して、5行分の申請情報をExcelの申請リストに記載し、RPAを実行したとします。

この場合、1列目の品番コード列に取得した品番コードを転記し、2列目以降も最初に取得した品番コードを転記してしまうんでしょうか?未読メールのみで取得しているため、1回目の時点で未読メールが0になるため2度目以降は実行が止まるorエラーになるのかとおもっていたのですが、5行分の情報が記載されている場合は関係なく動いてしまうのでしょうか?

If my understanding is correct - You want to loop through and excel file and get the mail corresponding to the values in the row and fetch the final code number from email URL and update the same in excel

if the above understanding is correct - you can achieve by following steps

  1. Open Excel file
  2. Use Activity For each Excel Row
  3. This will loop through each of the row available in excel. In your case - 5 times
  4. Note that the value in each column could be fetched using CurrentRow(“ColumnName”).ToString
  5. Now use outlook activity inside the for each excel
  6. Configure proper filter using the CurrentRow(“ColumnNamex”) value and get the mail
  7. If no email found - it will continue with next row. No error here
    Refer sample flow

NOTE: KINDLY USE ADDITIONAL FILTERS FOR SETTING UP YOUR FILTER USING CURRENT ROW VALUE IN EXCEL. THERE ARE MANY FILTER OPTIONS SIMILAR TO OUTLOOK

Hi @once10201029

In your flow, you’re wondering if the process will overwrite the Excel data in the first column with the same part number for each iteration, and whether the RPA will stop or error after processing one unread email when five rows of information are listed in the Excel sheet.

In this case, if your RPA workflow is set up to process only one unread email at a time, and you’re extracting and writing data to Excel, the first part number extracted would be written repeatedly for each row. The RPA will likely continue processing rows in the Excel sheet regardless of the unread email status unless you include logic to check for additional unread emails after each iteration.

item_check.xaml (1.0 MB)
回答ありがとうございます。
main.xamlは省いていますが、これが現在作成中のメインフローになります。
どこの部分がおかしいか指摘頂ければ幸いです。

Could you please share the screenshot where you have doubts?




合っているか不安な箇所を5枚送らせていただきます。
上記の3枚が、Excelに転記している部分になります。
メール本文にはURLが2つあり、最初のURLのみ開きたいためfirstURLで取得しています。

4枚目はメール取得に関する部分です。5枚目の繰り返し(各メール)アクティビティの追加フィルターで同じ形を作れば、outlookメールメッセージを取得アクティビティは必要ないのかなとも思っております。
ご確認よろしくお願いいたします。






合っているか不安な箇所を5枚送らせていただきます。
上記の3枚が、Excelに転記している部分になります。
メール本文にはURLが2つあり、最初のURLのみ開きたいためfirstURLで取得しています。
4枚目はメール取得に関する部分です。5枚目の繰り返し(各メール)アクティビティの追加フィルターで同じ形を作れば、outlookメールメッセージを取得アクティビティは必要ないのかなとも思っております。
ご確認よろしくお願いいたします。

どこか間違っていそうな点ありますでしょうか?