SharePoint approval for creating files/folders with Flow

%3CLINGO-SUB%20id%3D%22lingo-sub-1473915%22%20slang%3D%22en-US%22%3ESharePoint%20approval%20for%20creating%20files%2Ffolders%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1473915%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20restrain%20the%20permissions%20to%20create%20files%20or%20folders%20in%20the%20root%20folder%20of%20a%20SharePoint%20library%2C%20on%20this%20purpose%20I%20built%20the%20following%20Flow%20(the%20images%20can%20be%20found%20in%20the%20attachments)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20idea%20here%20is%20to%20send%20an%20e-mail%20for%20the%20admins%20to%20approve%20any%20creation%20on%20the%20selected%20folder%2C%20and%20if%20it%20is%20rejected%2C%20move%20the%20content%20to%20a%20%22Reject%22%20folder.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20the%20problem%3A%20Whenever%20a%20folder%20is%20created%20containing%20files%20inside%20of%20it%2C%20an%20e-mail%20is%20sent%20for%20every%20file%3A%20if%20there%20are%205%20file%20on%20it%2C%205%20e-mails%20are%20sent%20along%20the%20approval%20of%20the%20folder%2C%20even%20though%20I%20setted%20the%20flow%20to%20only%20do%20this%20on%20the%20Root%20folder.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20how%20to%20fix%20it%2C%20or%20have%20another%20solution%20to%20prevent%20creation%20on%20the%20root%20folder%20of%20a%20SharePoint%20library%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAny%20return%20will%20be%20appreciated!%20Thanks%20in%20advance.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3ESaulo%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1473915%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eapproval%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1474053%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20approval%20for%20creating%20files%2Ffolders%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1474053%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%2F699724%22%20target%3D%22_blank%22%3E%40Saulotferraz%3C%2FA%3E%26nbsp%3B-%20rather%20than%20using%20a%20flow%2C%20change%20the%20permissions%20for%20everyone%20else%20at%20the%20root%20level%20to%20read%20only%20and%20then%20grant%20them%20contribute%20access%20to%20the%20folders%20within%20that%20library%20where%20you%20want%20them%20to%20be%20able%20to%20create%20new%20files%20and%20folders.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1937627%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20approval%20for%20creating%20files%2Ffolders%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1937627%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F19689%22%20target%3D%22_blank%22%3E%40Kelly%20E%3C%2FA%3E%26nbsp%3BThe%20problem%20with%20the%20permissions%20is%20the%20effort%20to%20set%20individually%20permissions%20when%20you%20have%20a%20lot%20of%20folders%20inside%20the%20root%20folder.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hey everyone,

 

I need to restrain the permissions to create files or folders in the root folder of a SharePoint library, on this purpose I built the following Flow (the images can be found in the attachments)

 

The idea here is to send an e-mail for the admins to approve any creation on the selected folder, and if it is rejected, move the content to a "Reject" folder. 

 

Here's the problem: Whenever a folder is created containing files inside of it, an e-mail is sent for every file: if there are 5 file on it, 5 e-mails are sent along the approval of the folder, even though I setted the flow to only do this on the Root folder. 

 

Does anyone know how to fix it, or have another solution to prevent creation on the root folder of a SharePoint library?

 

Any return will be appreciated! Thanks in advance.

 

Best Regards,

Saulo

 

2 Replies

Hi @Saulotferraz - rather than using a flow, change the permissions for everyone else at the root level to read only and then grant them contribute access to the folders within that library where you want them to be able to create new files and folders. 

 

Hope that helps!

@Kelly_Edinger The problem with the permissions is the effort to set individually permissions when you have a lot of folders inside the root folder.