I am trying to save an attachment from an outlook email to SharePoint and rename the attachment.
Example:
1) Receive email from SSRS@example.com with attachment named WEBTPA.XLSX
2) Create a SharePoint file to my teams SharePoint DocBox folder (path can be selected in the action)
3) Name the shared file as Inventory.XLSX on SharePoint
I created a template based on a similar forum thread from 2016 (https://powerusers.microsoft.com/t5/Building-Flows/Renaming-files-using-a-Flow/m-p/120410/highlight/...) but it does not work. I receive the below error when using their method.
InvalidTemplate. Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '2790': '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 have also verified that "Include Attachments" is set to "yes" on the "receive new outlook email" action.
Any help would be more than appreciated, thanks!
Solved! Go to Solution.
After you changed the trigger action to include attachments did you perform the test again or use data from an existing run? If you used an existing run the attachment will still be missing... you need to re-run the test by re-running the trigger action.
HTH
Jay
Hi @aggiemarine07 ,
Please try to check the body of When a new email arrives and see if the attachment content is null in Flow run history.
I have dealt with the same problem and found that even after passing the Include Attachment check, the Attachment content is still empty in the Body.
Best Regards,
After you changed the trigger action to include attachments did you perform the test again or use data from an existing run? If you used an existing run the attachment will still be missing... you need to re-run the test by re-running the trigger action.
HTH
Jay
Hi @aggiemarine07 ,
Please try to check the body of When a new email arrives and see if the attachment content is null in Flow run history.
I have dealt with the same problem and found that even after passing the Include Attachment check, the Attachment content is still empty in the Body.
Best Regards,
thank you! i tried it again this morning and it worked!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
26 | |
26 | |
23 | |
13 | |
10 |
User | Count |
---|---|
62 | |
50 | |
30 | |
29 | |
24 |