Create a SharePoint site for each Business Unit

%3CLINGO-SUB%20id%3D%22lingo-sub-132374%22%20slang%3D%22en-US%22%3ECreate%20a%20SharePoint%20site%20for%20each%20Business%20Unit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-132374%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20Community%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20currently%20looking%20for%20a%20way%20to%20automate%20the%20creation%20of%20SharePoint%20websites%2Fsites%20for%20each%20time%20a%20Business%20Unit%20is%20created%20in%20Dynamics.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20tried%20it%20via%20Flow%2C%20but%20it%20doesn't%20give%20the%20possibility%20to%20access%20the%20Busness%20Unit%20entity.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20a%20lot%20for%20any%20tips%20to%20achieve%20this.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%2C%3C%2FP%3E%0A%3CP%3ENiklas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-132374%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Edeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-133230%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20SharePoint%20site%20for%20each%20Business%20Unit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133230%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20a%20lot%20for%20your%20help%20here!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20you%20recommend%20me%20a%20good%20starting%20point%3F%3C%2FP%3E%0A%3CP%3EIs%20this%20here%3A%26nbsp%3B%3CA%20title%3D%22SharePoint%20Patterns%20and%20Practices%20(PnP)%20Cmdlets%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fsharepoint%2Fsharepoint-pnp%2Fsharepoint-pnp-cmdlets%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESharePoint%20Patterns%20and%20Practices%20(PnP)%20Cmdlets%3C%2FA%3E%26nbsp%3Bthe%20right%20way%20to%20start%20with%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheers!%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-132737%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20SharePoint%20site%20for%20each%20Business%20Unit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-132737%22%20slang%3D%22en-US%22%3EI%20use%20an%20azure%20Function%20written%20in%20PowerShell%20which%20uses%20the%20PNP%20PowerShell%20library%20to%20create%20the%20site.%20Then%20you%20can%20call%20this%20with%20flow%3C%2FLINGO-BODY%3E
New Contributor

Dear Community,

 

I'm currently looking for a way to automate the creation of SharePoint websites/sites for each time a Business Unit is created in Dynamics.

 

I tried it via Flow, but it doesn't give the possibility to access the Busness Unit entity.

 

 

Thanks a lot for any tips to achieve this.

 

Best,

Niklas

2 Replies
I use an azure Function written in PowerShell which uses the PNP PowerShell library to create the site. Then you can call this with flow

Thanks a lot for your help here!

 

Can you recommend me a good starting point?

Is this here: SharePoint Patterns and Practices (PnP) Cmdlets the right way to start with?

 

Cheers! :)