Automate creating sub-folders when we add a root folder inside our sharepoint online document librar

%3CLINGO-SUB%20id%3D%22lingo-sub-1008050%22%20slang%3D%22en-US%22%3EAutomate%20creating%20sub-folders%20when%20we%20add%20a%20root%20folder%20inside%20our%20sharepoint%20online%20document%20librar%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1008050%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20working%20on%20a%20online%20document%20library%20inside%20out%20modern%20team%20site.%20and%20i%20want%20to%20automate%20the%20following%3A-%3C%2FP%3E%3CP%3E1-%20when%20a%20user%20create%20a%20root%20folder%20inside%20the%20document%20library%2C%20to%20create%20some%20sub-folders%20with%203%20hierarchy.%3C%2FP%3E%3CP%3E2-%20for%20example%20if%20a%20user%20add%20a%20root%20folder%20named%20%22HR%22%2C%20to%20have%20these%20sub-folders%20automatically%20created%3A-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22pln%22%3EHR%0A%20%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EPrivate%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EFor%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EEmployees%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EConfidential%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EProcedures%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EEmployees%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EExternal%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EUsers%3C%2FSPAN%3E%0A%0A%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EPublic%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EFor%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20customers%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EFor%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20suppliers%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3ENow%20if%20i%20were%20inside%20SP%202010%20or%20SP%202013%2C%20i%20would%20simply%20create%20a%20server-side%20event%20receiver%20and%20do%20the%20work.%20but%20in%20SP%20online%20creating%20remote%20event%20receivers%20are%20not%20working%20for%20me%2C%20especially%20i%20am%20unable%20to%20debug%20them%20using%20azure%20service%20bus%20(which%20was%20deprecated).%20so%20i%20am%20asking%20if%20i%20can%20achieve%20what%20i%20am%20looking%20using%20sharepoint%20workflow%202013%20or%20flow%20or%20another%20approach%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1008050%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Valued Contributor

I am working on a online document library inside out modern team site. and i want to automate the following:-

1- when a user create a root folder inside the document library, to create some sub-folders with 3 hierarchy.

2- for example if a user add a root folder named "HR", to have these sub-folders automatically created:-

 

HR
  - Private
       -For Employees
       -Confidential
       -Procedures
          -Employees
          -External Users

  - Public
       -For customers
              -For suppliers

Now if i were inside SP 2010 or SP 2013, i would simply create a server-side event receiver and do the work. but in SP online creating remote event receivers are not working for me, especially i am unable to debug them using azure service bus (which was deprecated). so i am asking if i can achieve what i am looking using sharepoint workflow 2013 or flow or another approach?

Thanks

 

0 Replies