7

We are planning to migrate our on-premise SP2013 to SharePoint Online. We have one issue which blocks our journey to the cloud.

We are using a set of different site templates to create team, project and other types of sites. We have automated the proces of creating project sites for our users. They can fill in a list with required values form to requests new sites. In the background we are running a powershell script for provisioning the requested sites.

In the online environment there is no option to run powershell scripts. Anyone has solution workaround to automate site creation?

Anyone has a good example?

Any ideas are welcome.

5

Sure, you can run powershell scripts, it's just a different set of objects that are available. There are SharePoint online cmdlets available, though they are pretty limited in capabilities. But you can also write CSOM code in PowerShell. Just search for "sharepoint csom powershell", and you'll turn up lots of examples. But you should also know about the PnP project on github. That project includes dozens of powershell commands that other folks have written that work with SharePoint online, including commands to create new sites, webs, lists, etc.

5

You can use SPD workflows to provision the site which we have implemented for the Microsoft SharePoint online site.

In SP 2013 workflow there is a new action "Call HTTP web service" which takes the REST API calls.

2

With assumption that it is about Site Collection creation, (as web can be created by power users themselves) you may also create an .net executable using CSOM which can fetch details from the list and create site collections using CSOM. Executable will need to be scheduled on azure or local server.

If you need to create Web also, that can also be done using same method.

Check Create Site Collection using CSOM

1

I wrote a blog post explaining how to do this with SharePoint Designer workflows. It works with SPO, too.

http://www.connectorman.com/site-creation-workflow-with-custom-template-spd-2013/enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.