Saving multiple but not all email attachment types using StudioX

Working on a process that goes through each email and if that email matches certain criteria it will save all .xls and *.pdf files only leaving behind word and image files. I have tried a variety of ways to combine both file types in the same activity to no avail. I also have tried using two back to back “save email attachments” activities with the “filter by file name” set to each file type and that failed. Is this possible? If so, any suggestions on how to solve this?

I’d rather not pull all file types and then delete any files in the designated folder that are not .xls or *.pdf.

Thanks in advance for any help!

Hello @jrocha!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly

Thank you for your response! I tried this method and unfortunately the bot just saves all email attachments that are .xls twice, calling the duplicate *_1. I then receive an error message and no *.pdf files are saved. The only way I seem to be able to get .xlsx and *.pdf files to save is by removing any extension in the “filter by file name” option. Unfortunately, there are other file types that we do not want pulled over by the bot. Any other suggestions? Is there anyway to have multiple file types in the “filter by file name” option? The bot does not seem to be okay with back to back “save email attachments” or at least I can’t seem to get it to work…

1 Like

can you post your wf, the one you say it save twice all the attachments?