Determine and Download Email Attchments as Chosen by the User

Dear friends,

I want to develop a process that can identify emails from a specific sender in my Outlook account and download the attachments. However, I need to distinguish whether the attachment is the correct one beforehand. Therefore, I am planning to create an attended automation process that allows users to decide whether to proceed with the download.

I have encountered challenges in building the attended automation process, and I would appreciate guidance on how to set up the conditions in this scenario.

Thank you for your assistance.

If you want human to verify the attachments are proper or not, you can use UiPath Forms to display the attachment and providing buttons on the form as Approve or Reject

Thanks for your reply. Should i use Attended Automation Framewrok to do this? I noticed that UiPath have updated this part so that the video on Youtube not worked.

@abc0106

  1. Use “Get Outlook Mail Messages”:

    • Specify the folder and criteria to fetch emails.
  2. Use “For Each” to iterate through each email:
    a. Use “If” activity to check if the sender is the specific sender:

    • Condition: item.Sender.Address = "specific.sender@example.com"

    b. Inside the “If” branch, use “Input Dialog”:

    • Title: “Download Attachment?”
    • Content: “Do you want to download attachments from this email?”
    • Output: Capture the user’s decision in a variable (e.g., UserDecision).

    c. Use “Flow Decision” to check UserDecision:

    • Condition: UserDecision = "Yes"

    d. Inside the “True” branch, use “Save Attachments” to download attachments.

  3. Continue or Exit:

    • After the “For Each” loop, decide whether to continue processing the next email or end the automation.

@Krishna_Raj
Amazing! I will try this but I still have two questions for this flow.

  1. How will the user determine if it is the correct one? Will there be email content displayed?"
  2. Is it possible for us to constantly detect whether we have received emails from a specific sender? If so, how can we achieve this, or is it necessary to set up a trigger to run periodically, such as every minute?