Flows Mass Copy, Paste, and Delete Files

%3CLINGO-SUB%20id%3D%22lingo-sub-745512%22%20slang%3D%22en-US%22%3EFlows%20Mass%20Copy%2C%20Paste%2C%20and%20Delete%20Files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-745512%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20in%20the%20process%20of%20creating%20a%20communication%20site%20that%20automatically%20distribute%20reports%20from%20an%20outlook%20email%20attachments%20to%20a%20SharePoint%20online%20site%20each%20morning.%20The%20files%20will%20be%20housed%20in%20a%20folder%20for%20business%20partners%20to%20view.%20At%20the%20end%20of%20each%20day%20these%20files%20need%20to%20be%20moved%20(%20copied%20)%20to%20an%20archive%20folder%20to%20make%20room%20for%20the%20next%20days%20reports.%20After%20these%20files%20have%20been%20copied%20to%20the%20new%20folder%2C%20the%20old%20ones%20will%20need%20to%20be%20deleted%20out%20of%20the%20%22current%22%20report%20folder.%20I%20know%20Flows%20is%20capable%20of%20doing%20these%20actions%20but%20it%20seems%20that%20you%20have%20to%20delete%2C%20and%20copy%20each%20file%20one%20at%20a%20time.%20Does%20anyone%20know%20of%20a%20way%20to%20mass%20copy%2C%20paste%2C%20and%20delete%20so%20that%20I%20don't%20have%20to%20create%20a%20separate%20flow%20for%20each%20file%20I%20am%20trying%20to%20move.%20(There%20are%20about%20100%20files)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-745512%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-746774%22%20slang%3D%22en-US%22%3ERe%3A%20Flows%20Mass%20Copy%2C%20Paste%2C%20and%20Delete%20Files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-746774%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F368396%22%20target%3D%22_blank%22%3E%40BryceKauffman%3C%2FA%3Ehave%20a%20look%20at%20the%20%22Apply%20to%20Each%22%20Flow%20action%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fflow%2Fapply-to-each%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fflow%2Fapply-to-each%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I am in the process of creating a communication site that automatically distribute reports from an outlook email attachments to a SharePoint online site each morning. The files will be housed in a folder for business partners to view. At the end of each day these files need to be moved ( copied ) to an archive folder to make room for the next days reports. After these files have been copied to the new folder, the old ones will need to be deleted out of the "current" report folder. I know Flows is capable of doing these actions but it seems that you have to delete, and copy each file one at a time. Does anyone know of a way to mass copy, paste, and delete so that I don't have to create a separate flow for each file I am trying to move. (There are about 100 files)

1 Reply
Highlighted

@BryceKauffman have a look at the "Apply to Each" Flow action

https://docs.microsoft.com/en-us/flow/apply-to-each