Skip to main content
Solved

Saving Attachment from a Specific Email

  • July 8, 2024
  • 1 reply
  • 109 views

Forum|alt.badge.img

Hello Everyone,
I am working on AA Community Edition, and i want to save attachments from a specific mail but when i am using the Save Attachments option, it is saving all the attachments in a folder.
 

Options used in Process:

  1. Connect Email
  2. Read mail in Loop with Subject contains Productivity Sheet, and assigned the values to emailDetails.
  3. Save Attachments, defined the folder path.
  4. Disconnect Email.

It is saving all the attachments or saving all attachments in which Productivity word added.

Best answer by Aaron.Gleason

Hello!

Unfortunately, it’s an all-or-nothing kind of solution. When you save the attachments, you can use the Loop: through files and folders to iterate through all the saved attachments. If you need a specific file type, you can use the “extension” index of the Dictionary variable (or the individual variables) to help you process just the file with the extension you want, or use the “name” index to find a specific filename.

Look here for more information in the “For each file in folder” section:
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-loop-command.html

PS: Remember to clean out the temporary folder within the loop to prevent double-processing of files.

View original
Did this topic help answer your question?

1 reply

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 566 replies
  • Answer
  • July 8, 2024

Hello!

Unfortunately, it’s an all-or-nothing kind of solution. When you save the attachments, you can use the Loop: through files and folders to iterate through all the saved attachments. If you need a specific file type, you can use the “extension” index of the Dictionary variable (or the individual variables) to help you process just the file with the extension you want, or use the “name” index to find a specific filename.

Look here for more information in the “For each file in folder” section:
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-loop-command.html

PS: Remember to clean out the temporary folder within the loop to prevent double-processing of files.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings