Forum Discussion
Can i create a Button/Image that refers to an url, to create a site collection in SP Online?
Hi Rob Giesen,
Do you mean like in Teams creating a team?
Or create site in SharePoint that creates a Communication or Team site?
or a button that starts a call to admin.asmx to create a site. (e.g. request list item gets created and a Flow process starts and a site collection is created)
- Rob GiesenFeb 06, 2018Brass Contributor
This option is what im looking for (i pressume this option is admin.asmx) :
- Feb 06, 2018
You will be looking at creating a service that creates the site collection for you.
So this could be a Flow that calls the admin.asmx or a function app or anything really. Then you could even implement something that applies a pnp template assuming that you don't want to use the out of the box templates.
I'm currently working on a project where the customer creates a site request in SP2016 (on-premises SharePoint so I don't have the option of Flow) Then SharePoint Designer calls a webservice that then calls admin.asmx
So your button could for example use the pnp js libraries to create a list item, this then triggers the Flow that calls admin.asmx.
- Pablo R. OrtizFeb 06, 2018Iron Contributor
you need admin rights to create site collections like that.
- Rob GiesenFeb 06, 2018Brass Contributor
Yes i know that, but that is not my question :)