Monday, August 19, 2019


    UiPath Automation For Email  



Download attachment based on email subject


Step 1:

Use get Outlook mail messages activity and mention folder in the properties from folder you want to get mails like(“inbox”) and check/uncheck the unread an mark read according to your requirement .and store it in a variable getmailmessages .

Note: Make sure you are logged in your outlook  mail or else you need to provide the credentials

Step 2:

Use for each activity to look through every mail in inbox folder and use  variable getmailmessages in for each activity



Note: Change the type of argument of for each activity to system.mailmessages.

Step 3:

In the body of for each activity use If condition to add condition to get attachment of particular mail only with respected subject name  .




Step 4: Use save attachment activity to save the attachment to specifies folder .



Use item as variable in save attachment activity and save and Run
 Running Process: The Robot enters the Inbox folder and scans each and every mail message and if any mail contains subject name with what you have provided in if condition then it downloads the attachment of that particular mail and save it in a folder.

Thank You,

No comments:

Post a Comment