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 Designer
- URL: The site relative url of the new site e.g. current site: http://localhost/websites/parent, URL: ”Child1” = http://localhost/websites/parent/Child1
- Title: Title of the new site
- Description: Description of the new site
- Template: The filename of the template to use e.g. “MyTemplate.stp”
- Inherit Permissions: Inherit the permission from parent site (yes/no)
- Result: The absolute Url of the new site e.g. http://localhost/websites/parent/Child1
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:
hi, i got an error when implement this workflow. here the error "Error creating Site. The language is not supported on the server."
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
hi again,
what do you mean by same language?,i just use out of the box template.
thanks in advance christian.
bye
Hi,
can you please tell me the parameters you are usingfor Title, Url, Template...
Bye,
Christian
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.
The langugage in your *.stp has to match to the language of the parent web where you use it.
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
I have the same problem. When i chose a activity from the list, nothing shows up in the designer.
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
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.
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
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.
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
Hi Christian, Will this work with 2010?
Hi Leo,
yes, it will work. Deploy the wsp and change the web.config as described in the readme.
bye, Christian
I agree with Ashu, if you set to not inherit permissions, they are still inherited and new groups are not created.
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
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... :(
Hello, take a look at this thread:
http://ilovesharepoint.codeplex.com/Thread/View.aspx?ThreadId=227374
Bye, Christian
I can see the workflow running successfully, but no site is actually getting created. Any reason why?
Hi,
sorry, haven't any idea. The created webs will not be shown in the top link bar.
Bye, Christian
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!
Post a Comment