I have been trying to build a manual one time run flow that copies attached files in a SharePoint list to a Sharepoint document library where the attachments are added to subfolders of the document library, but I have been unsuccessful.
I have about 300 list items each of which have several attachments. The flow needs to read each list item and copy the attachments to a subfolder that is created from two fields in the list.
For example, here are a few items in the list
So if I take the first item as an example the flow needs to take the Project_Name and concatenate it with the Fab_Number, so the document library has a subfolder name 88Ridge_Fab2 and the attachments are copied there, then it needs to read the next one and make a subfolder called "88Ridge Redriver_Fab1" and copy its attachments there, etc... In the end I am trying to have all the attachments in the doc library and the list should just have the details.
Currently, I am stuck regarding how to create the subfolder name from the field in the list. "Project Storage Library" is the document library.
I am not bound to this idea so if there is a better way.
Thanks for any help
Solved! Go to Solution.
In the end all that I am trying to do is move the items and attachment in the list library:
To a local Document Library:
Project Storage Library:
Bush Key TMTB (Aurora)/Fab1
I think you need to play and understand what you have built. An apply to each will run sequentially, i.e. one at a time. If you have 100 sets of grouped actions in that loop and they take 6 seconds each, it will take ~600 seconds to complete i.e. 10 minutes. You can explore concurrency, elipses top right of the apply to each and run up to 50 of these actions in parallel. This will speed up your flow but as always you need to test.
Using the "next failed" button you can identify where 1 of the 100 stages failed and then look to address that specific problem. Once you have correctly identified and handle these, you can run it again.
When you deep dive and learn as fast as you are right now, I think you need to take a step back and reflect. Can I now do this any better with what I have learned?
I've probably answered your initial questions about creating a new folder by appending two column names, if you have any further questions about the whole process that you are building, I think it would be fair to mark a solution here and ask that another community member help you with the next stage of learning in another post.
Good luck with your developments!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
P.S. take a look at my new blog here
Just an FYI, the failure was happening since some users added a space at the end of the text input. I found that to be the common denominator, and it ran fine once I took them out.
Check out new user group experience and if you are a leader please create your group
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.