Jan 19, 2009

iLSP - SharePoint Designer “Create Site” Action

With the “Create a site” action you can create SharePoint sites from within SharePoint Designer workflows.

The action is included in my SharePoint Designer Actions 1.0 release on CodePlex. Source code is available.

Short Documentation

Configuration in SharePoint Designerimage

Note: The activity creates the site while execution. From a WF design point of view, it would be preferable to do heavy work in a Work Batch.  Maybe I show this in another post…

23 comments:

Anonymous said...

hi, i got an error when implement this workflow. here the error "Error creating Site. The language is not supported on the server."

Christian said...

Hi,
the actual activity implementation uses the language code from the parent site, means your template must have the same language then the parent site.
Bye,
Christian

syawal said...

hi again,

what do you mean by same language?,i just use out of the box template.
thanks in advance christian.

bye

Christian said...

Hi,

can you please tell me the parameters you are usingfor Title, Url, Template...
Bye,
Christian

syawal said...

i implement this at root site, in SPD it will become like this.

" URL:NewSite;
Title:Child1;
Description:This is test site; Template am.stp;
Inherit Permissions:Yes;
Store new site URL in Result"

Template i use am.stp, i already save one team site as am.stp.

thanks.

Christian said...

The langugage in your *.stp has to match to the language of the parent web where you use it.

kissouyin said...
This comment has been removed by a blog administrator.
Johan said...

Hi,

I don't get the designer rules. When I choose an ILoveSharePoint activity, no designer rule is shown where I can configure my properties.

Regards,

Johan

Ashu said...

I have the same problem. When i chose a activity from the list, nothing shows up in the designer.

Christian said...

Hello,

maybe this thread helps http://ilovesharepoint.codeplex.com/Thread/View.aspx?ThreadId=44761
to solve the nothing shows up in the designer.

Bye, Christian

Ashu said...

I love this tool... but it seems that the created site does not inherit permissions regardless of the setting in the workflow. am i doing something wrong? the resulting site only has system account as a user.

Ola said...

Hi,
I'm trying to create a project list with a few project attributes (name, description, project leader, acvite or not, and so on) as well as a field for project site (url). I'm trying to use the Create Site action to do this, so I've created a workflow which creates a site with the given name and description.

1. However, is there a way I can put the complete URL for the created site into the list wich started the workflow?

2. Even though I create the site from a workflow connected to a list in a subsite - the site is created under the top site. Am I doing something wrong?

Regards,
Ola
Norway

erugalatha said...

It is not clear enough what the URL should be. Please make your post concise so that we know exactly what the URL should be.

Christian said...

Hello,

just check out the msdn documentation at http://msdn.microsoft.com/en-us/library/ms411806.aspx:

A string that contains the new Web site URL relative to the root Web site in the site collection. For example, to create a Web site at http://MyServer/sites/MySiteCollection/MyNewWebsite, specify MyNewWebsite, or to create a Web site one level lower at http://MyServer/sites/MySiteCollection/Website/MyNewWebsite, specify Website/MyNewWebsite.

Hope this helps.

bye,

Christian

Leo Alvarez said...

Hi Christian, Will this work with 2010?

Christian said...

Hi Leo,

yes, it will work. Deploy the wsp and change the web.config as described in the readme.

bye, Christian

Anonymous said...

I agree with Ashu, if you set to not inherit permissions, they are still inherited and new groups are not created.

dave said...

Hi,
I have tried this with 2010 to create sites based on a site template I created, but I cannot get it to work. My template is saved as 'Campaign Template' as a solution. I have no idea how to pass in the correct paremeter in template name to get my site to be created using my own template

Anonymous said...

I have the same problem. In 2010 not work in custom templates. Create my own template (save site as template) and try with that, but not work... :(

Christian said...

Hello, take a look at this thread:
http://ilovesharepoint.codeplex.com/Thread/View.aspx?ThreadId=227374
Bye, Christian

Snehal Rana said...

I can see the workflow running successfully, but no site is actually getting created. Any reason why?

Christian said...

Hi,
sorry, haven't any idea. The created webs will not be shown in the top link bar.
Bye, Christian

Jason Wyckoff said...

Thanks for the great tool!

It gets me 95% where I need to be!

One quick question - is there a way to configure the site during creation to "Display the same navigation items as the parent site"? If not, how about making it the default (I *always* want it to inherit the parent navigation.

TIA!