Hi, I use a flow that auto save email attachments in sharepoint and it work well.
And now I would like to save different attachments in different folders.
a. the email was a daily report
b. files were all excels
c. files name were "WoYield_xxxxxxxx.xlsx" and "WoDetail_xxxxxxxx.xlsx", the "xxxxxxxx"was yyyymmdd (it changed every day)
How to save "WoYield_xxxxxxxx.xlsx" in A foleder and save "WoDetail_xxxxxxxx.xlsx" in B folder when the daily report arrived?
I would like to keep the file name when saved in the folders.
Thank you very much.
Solved! Go to Solution.
Hi @Jerry5209
Using split and first expression you can get the filename. Once the filename is extracted then add an if condition to check the filename. Use the SharePoint create file step to upload the email attachment.
Here is an example of split and first expression to get the filename.
Add a compose statement and copy the below expression. Replace the hardcoded filename to email attachment filename.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsHi @Jerry5209
Using split and first expression you can get the filename. Once the filename is extracted then add an if condition to check the filename. Use the SharePoint create file step to upload the email attachment.
Here is an example of split and first expression to get the filename.
Add a compose statement and copy the below expression. Replace the hardcoded filename to email attachment filename.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video Tutorials
Hi @Jerry5209 ,
You can use Condition to determine if Attachment Name begins with the specified string value and then save the file to the specified folder.
For different folders, you could add a parallel branch to save the file to folder A or B respectively.
Image reference:
Best Regards,
Hi Barry:
I tried Abm's solution and it works so I didn't try this solution, I think this one should be worked too, thank you very much.
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
47 | |
45 | |
43 | |
41 | |
37 |
User | Count |
---|---|
83 | |
77 | |
69 | |
52 | |
47 |