I want to save attachement file from a new mail to File System.
My Flow:
- Trigger : Outlook for Business - When a new mail arrives
- Apply to each - attachements
- Action: Microsoft Teams - Alert the team ( message : Subject )
- Action: File System - Create file ( file name : Name, file content : Content )
Error details:
Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '2086': 'The template language function 'base64ToBinary' expects its parameter to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#base64ToBinary for usage details.'
I want to save attachment files to on-premises file server.
Regards,
Yoshihiro Kawabata
Solved! Go to Solution.
Hi @yoshihirok,
In addition to "Has Attachment" you're also going to want to check "Include attachment."
"Has attachment" makes it so that the flow only triggers on emails that have attachments. This is good to have for your use case since you're only interested in emails with attachments and you don't want to trigger a bunch of flows for things you don't care about.
"Include attachment" is what actually includes the attachment content. Without that you just get some metadata about the attachments, not the actual content.
Hope this helps!
Best,
Travis
Hi @yoshihirok,
Did you specify that you wanted to include attachments in the trigger? If no, please try that. If yes, could you try adding a condition to skip the attachment if it is null?
Thanks,
Shubham
I re-check this issue with "Has Attachement" = "Yes" in Trigger "When a new mail arraivs".
and Error happened.
and by dump the attachement from Microsoft Teams - Alert the team.
"Attachments" propertys is
"Has Attachment" = True,
"Name" = 1.png,
"Content-Type" = image/png.
What can I do for figure out this issue ?
Regard,
Yoshihiro Kawabata
Hi @yoshihirok,
In addition to "Has Attachment" you're also going to want to check "Include attachment."
"Has attachment" makes it so that the flow only triggers on emails that have attachments. This is good to have for your use case since you're only interested in emails with attachments and you don't want to trigger a bunch of flows for things you don't care about.
"Include attachment" is what actually includes the attachment content. Without that you just get some metadata about the attachments, not the actual content.
Hope this helps!
Best,
Travis
Thank you, Great Thank you @TravisB, I can create a file from mail attachment.
"Has Attachment" = Yes, and "Include Attachment" = Yes.
I share this Tips at this community.
"Tips: Save mail attachment file to File System "
https://powerusers.microsoft.com/t5/General-Flow-Discussion/Tips-Save-mail-attachment-file-to-File-S...
Now I can do more with Mail attachment and Microsoft Flow.
Regards,
Yoshihiro Kawabata
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
3 | |
2 | |
2 | |
2 | |
2 |