Hi,
So I created a flow where it triggers when an email arrives to a Shared mailbox and then it would create the email on SharePoint library, but the problem is we can't open the email once we download it, I get this error "Can't open file: [filename]. The file may not exist, you may not have permission to open it, or it may be open in another program."
This happens with different machines/users so it's not only my computer.
Here's a summary of the flow:
This is the error I get when I download the email from SharePoint library:
I can rename the email once I download it so it's not opened anywhere.
Has anyone else experienced this?
Thanks! That expression worked on my attempt to export the email to a Sharepoint folder with the file name same as the subject of the email and attach extension .eml onto it. I tested by downloading the .eml file and open with Outlook.
This is really helpful 🙂
Such an odd thing that it wont save as a msg and will only save as an eml
I know this post has been inactive for a while but does anyone know if there is a reason not to save as eml?
Interesting, I wonder why .msg file extension doesn't work..
Funny thing is if I drag and drop an email from outlook to sharepoint library, it works fine and its a .msg extension too and I'm able to re-create the email (.msg ext) on the flow without issue as well.
Seems like if its coming from a shared mailbox and using the export email action, theres problems with .msg extension.
Hi @MrEdward
I am able to replicate the scenario the cause of the error is due to the filename. Do not give the filename like the dynamic expression and then string like what you gave. Use the concat method to append the file name as like the below. Use the extension as eml and not as msg
concat(triggerOutputs()?['body/subject'], '.eml')
The moment I used the above expression and added the output of the Export email action and then created a file in OneDrive, I am able to open the file.
Please try the above and let me know.
Hi @MrEdward,
Could you please share the steps of export Email to msg file?
Here is a blog about how to fix msg file cannot open, hope it could help you:
How to Fix MSG File Not Opening Problem in Outlook - Info | Remo Software
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional