Hello All,
I have build simple flow that should download attachments from Shared Mailbox and save on OneDrive.
Trigger used: When a new email arrives in a shared mailbox (V2)
Flow is valid and works, but unfortunately as a result, file created on OneDrive is incorrect.
Saved file is empty (independently on the file format) - contains only metadata of file..
It looks like a bug..
I already tested different options:
- same flow with different trigger (On new email - my mailbox) - works correctly (so flow is correct)
- same trigger but saving whole email to .eml - works correctly (so all accesses are ok)
- same trigger and flow but saving attachment to Sharepoint online - file created incorrectly (like to OneDrive)
Do You think there is something incorrect?
Any idea for workaround?
My flow:
File (pdf in this example but opened with notepad):
Solved! Go to Solution.
Did you try also to add 'Get attachments' action to get the attachment data before you create the file?
Also I see you're using the email subject as the 'File Name'? Isn't the file missing the file extension?
Did you try also to add 'Get attachments' action to get the attachment data before you create the file?
Also I see you're using the email subject as the 'File Name'? Isn't the file missing the file extension?
Hi @tom_riha
Many thanks! That actually works! 🙂
and yes for subject it requires file extension - I used Subject with one of my tests. now I just use attachment name which does not require extension.
but a bit confusing that this additional step is required for shared mailbox and not for personal..
cheers!
I needed this step also for my personal mailbox, when I tried to 'Test run' run the flow, it always broke the uploaded file without it. So I had to either add this additional step, or sent a fresh email with each test run. 🙂
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
42 | |
37 | |
37 | |
35 | |
25 |
User | Count |
---|---|
38 | |
36 | |
33 | |
31 | |
30 |