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?
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.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2