I tried the "Save my email attachments to a SharePoint document library" flow and it's running flawlessly. However, the Outlook attachment should overwrite the old file everytime it's received.
What is happening is the following:
-Original attachment name is abc-yyyy-mm-dd.xlsx, when it runs with the default flow I'm able to open it with Excel Online.
-Used flow to change the attachment name in the "Name" field to abc.xlsx, but Excel Online won't open this file.
What can I do to correct this situation?
It should be default for SharePoint library that when a file is created in the library, if it has the same name with the old file, the old file would be overwritten, if not, a new file would be created.
About what is happening on your side, I start the flow from the template, it works fine, I can check the Excel file with Excel Online.
Then I change the file name field to “import.xlsx”, run the flow with the same file as an attachment, the flow runs succeed, I can still check the Excel file with Excel Online.
Please try again with it on your side. If you are still having the issue, please feel free share a screenshot for the flow.
With this flow I'm able to open the attachment in Excel Online
But with this one it doesn't.
After further testing I also noticed it doesn't open on excel offline either and the file created is just a couple of kb's.
I tried both of your approaches and it worked for me. The first screenshot below shows the Flow creating the file in the SharePoint library with the attachment's name and the second shows a custom file name I used.
Maybe you can help me
I have tried a lot to change the name of the email attachments it also works with different ways but all the time when I go to the file on SharePoint I get a mistake that the file can not be opened.
Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!
Continue your learning in our online communities.
Features releasing from October 2019 through March 2020
Fill out a quick form to claim your user group badge now!
Check out the new Microsoft Flow Community Blog Topic Suggestion board!
Learn how to build the business apps that you need
Find out where you can attend!
Watch & learn from the Flow Community Video Gallery!