Moving folders in a Sharepoint online site with a new name

%3CLINGO-SUB%20id%3D%22lingo-sub-755046%22%20slang%3D%22en-US%22%3EMoving%20folders%20in%20a%20Sharepoint%20online%20site%20with%20a%20new%20name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755046%22%20slang%3D%22en-US%22%3E%3CP%3EOkay%20so%20I%20have%20been%20playing%20around%20with%20SharePoint%20Online%2C%20and%20Flows%20for%20the%20past%20couple%20of%20weeks%20and%20can't%20find%20a%20solution%20to%20this%20problem.%20Here%20is%20the%20issue.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEach%20day%20I%20have%20outlook%20email%20attachments%20sent%20to%20a%20folder%20on%20my%20SharePoint%20online%20site.%20(I%20got%20this%20part%20figured%20out)%20These%20folders%20contain%20many%20files%20or%20email%20attachments%20and%20act%20as%20%22Current%22%20reports.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20the%20part%20I%20need%20help%20with.%20Each%20morning%20I%20want%20the%20folder%20to%20move%20to%20a%20new%20location%20to%20be%20archived%20on%20the%20site%20with%20a%20new%20name%20such%20as%20'MM_DD_YYYY_Reports'.%20I%20also%20need%20the%20old%20folder%20location%20to%20be%20stripped%20with%20of%20all%20the%20files%20that%20were%20in%20there%20to%20make%20room%20for%20the%20new%20incoming%20files%20later%20that%20day.%20I%20can't%20delete%20the%20folder%20all%20together%20because%20then%20my%20flow%20that%20brings%20in%20the%20email%20attachments%20won't%20have%20anything%20to%20reference%2C%20and%20SharePoint%20does%20not%20allow%20for%20folders%20to%20be%20scheduled%20for%20some%20reason.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20any%20solutions%20to%20this%20situation%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-755046%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-755992%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20folders%20in%20a%20Sharepoint%20online%20site%20with%20a%20new%20name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755992%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%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%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EInstead%20of%20renaming%20the%20%22Current%22%20reports%20folder%20create%20a%20new%20%22%3CSPAN%3EMM_DD_YYYY_Reports%22%20folder%20and%20move%20the%20files%20into%26nbsp%3BMM_DD_YYYY_Reports%20within%20the%20Flow.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20hope%20this%20helps.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ENorm%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756156%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20folders%20in%20a%20Sharepoint%20online%20site%20with%20a%20new%20name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756156%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%3E%26nbsp%3B%20Check%20the%20attached%20sample%20that%20can%20fit%20your%20requirement.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20flow%20on%20every%20day%20copies%20all%20documents%20that%20are%20in%20Documents%2FAttachments%20and%20moves%20them%20to%20Archive%2FMM-DD-YYYY%20.%20Once%20the%20move%20is%20completed%20the%20files%20are%20deleted%20from%26nbsp%3BDocuments%2FAttachments.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20a%20preety%20big%20flow.%20Try%20it%20out%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Okay so I have been playing around with SharePoint Online, and Flows for the past couple of weeks and can't find a solution to this problem. Here is the issue. 

 

Each day I have outlook email attachments sent to a folder on my SharePoint online site. (I got this part figured out) These folders contain many files or email attachments and act as "Current" reports.

 

Now the part I need help with. Each morning I want the folder to move to a new location to be archived on the site with a new name such as 'MM_DD_YYYY_Reports'. I also need the old folder location to be stripped with of all the files that were in there to make room for the new incoming files later that day. I can't delete the folder all together because then my flow that brings in the email attachments won't have anything to reference, and SharePoint does not allow for folders to be scheduled for some reason. 

 

Does anyone have any solutions to this situation?

 

Thank!

 

 

2 Replies

Hi @BryceKauffman,

 

Instead of renaming the "Current" reports folder create a new "MM_DD_YYYY_Reports" folder and move the files into MM_DD_YYYY_Reports within the Flow. 

 

I hope this helps.

 

Norm

@BryceKauffman  Check the attached sample that can fit your requirement. 

The flow on every day copies all documents that are in Documents/Attachments and moves them to Archive/MM-DD-YYYY . Once the move is completed the files are deleted from Documents/Attachments. 

 

It is a preety big flow. Try it out