Feb 19, 2011

Create Site Action (Advanced SharePoint Designer 2010 Workflow Actions)

The first action I would like to introduce is the “Create a Site” workflow action. With this action you can create SharePoint sites via SharePoint Designer Workflows. The action and the source can be downloaded here.

Add the “Create a Site” action to a SharePoint 2010 Designer Workflow

image

Configuration

image
URL: The url of the web site. You could either use an relative url to create the site direct under the current site or an absolute url to create the site under any site. The workflow initiator needs appropriate permissions. Or you can use an impersonation step to run the action under the permissions of the workflow author.
Title: Title of the site
Description: Description of the site
Template: Template name of the new site. Default is Team Site (STS#0).
You can get a list of all farm templates with the PowerShell command “Get-SPWebTemplates”.
To get a list of templates from a specific site’s template catalog use the following PowerShell command:
Get-SPWeb http://contoso/sites/spd | %{$_.GetAvailableWebTemplates($_.Language)}
image
Use the name of the template e.g. WIKI#0
Language Code: The language code for the new site e.g. 1033 for English or 1031 for German. 0 means inherit the language from the parent site.
Inherit Permission: Inherit permissions from the parent site.
Inherit Top Navigation: Use the  same top navigation as the parent site.
Output: Returns the absolute url of the new site

image

Publish and run the workflow…

Wiki Documentaion

40 comments:

Anders said...

Just what i needed, tnx alot. The entire solution is awesome. Tried to make my own "Create Site from template" workflow in VS 2010, but im not a decent programmer and I failed hehe. You are using a Activity Library? Sry if its a stupid qusetion, but im very intersting learning how its done, still on uni and I have a project about SP2010.

Christian said...

Anders, sorry I'm a little bit late. Active Library? No, just take a look in the my source code that is available on CodePlex.
Bye, Christian

محمّد سددقالی . سوفٹوارے ڈولوپر said...

Hi ,
I have been looking for this to complete my task form last couple of days .Then Yesterday i did in visual studio.This i install for all web-applications in sharepoint and it's awesome.Request you to mail me to mdsiddiqali@hotmail.com .I want to know more about this kind of wsp files .Hope you respond to me.
Thanks,
Quality Communication Provides
Quality Work.
siddiq-sharepoint2010.blogspot.com
Mohammad Siddiqali.

Michele said...

Thanks for the feature... this is exactly what I was looking for. I'm having an issue though. I had no problems installing the feature and activating it. The issue I'm having is after creating a workflow that uses the "create site" action, I receive no error, the workflow says it completed but the site is never created. Where are the errors logged so I can see what is going on? Thanks!

Christian said...

@michele: Wasn't able to repdoduce the issue. You should find the error in the error variable of the action and in the SharePoint ULS Log.

Stefan said...

Does this cater for using ports? My site didn't want to create so I checked the error output and it said : is an illegal character.

Is there a workaround for this?

Anonymous said...

I am using a custom template and this is what appears in the Name field when listing the templates:
{56685AF0-0AAB-461B-9204-89F1AC045661}#IT_PMM_Template.

What exactly should be placed in the template field. I tried the whole thing and that fails. Greg

Anonymous said...

This is great. I was doing this as an application page before seeing your example. Just wondering, after the workflow completes, how would I have the workflow navigate to the new provisioned URL?

Thanks

Anonymous said...

Does this work in Office 365 also?

Christian said...

Because this is not a sandboxed solution it will nor work in SharePoint Online. But I may develop a sanboxed version next week...

Bye, Christian

lovesharepoint said...

Hi Christian can you post me the steps. how to create site on the workflow completed event

Anonymous said...

Tried everything... but no sites gets created...

I am using a custom template and this is what appears in the Name field when listing the templates:
{56685AF0-0AAB-461B-9204-89F1AC045661}#MyTemplate2.

even tried with the default STS#0 template

What exactly should be placed in the template field?

I tried every thing but it fails....

The powershell command update Sharepoint designer command failed with the identifier switch not found - could this be the cause ?

Jeroen said...

hi,
do you already have a sandboxed version available?
thanks
Jeroen

Anonymous said...

Hi all,
If you have custom template and want to create site using I love SP,
specify template as {guid}#siteTemplatename

you need to get the guid of the template from using the following powershell script,
Get-SPWeb http://sps2010:007/Codeplex | %{$_.GetAvailableWebTemplates($_.Language)} | fl *

Custom list will appear at the end of the result...

If you properly check this GUID it is different than that which you see in solution gallery..

Gokul Kumar said...

Hi,

I am very new to sharepoint and designer. I found this very interesting. all I need to do is to create a new site whenever I add a new item to my list. so included the create site action under impersonation step. My workflow status is 'In progress' after I add a line item. Please help

Anonymous said...

Does this work with SharePoint 2013? I do not have the SharePoint 2013 workflow items turned on yet and still running SharePoint 2010 workflows... but when I installed this it never showed up in SPD 2013. So is there a way to get this to work?

electronic signature said...

Excellent! Thanks for this - I've been looking at this feature for ages. Followed your instructions and it works a treat!

maymay said...

Even so, while using some sort of Hulu VPN with omega replica everyone can certainly without difficulty attain appropriate having access to most of these internet websites which enables it to get started making the most of each of the exploding activity to merely exploit. It is by means of in addition to a lot the way you can try enjoying Hulu with Europe or maybe Netflix in great britan. As a way to acquire a omega replica with GREAT BRITAIN the vital thing you have got to complete is usually function a simple on the net try to find companies. After you accomplish this you can be stunned to get we now have basically many like services. At this point you must take the time to help hublot replica contrasting most of these products and services services. Always be certain to totally research every VPN services that you'll be thinking of working with. You should do that to make certain that you are looking for a corporation that's infinite bandwidth and this helps ensure excessive swiftness exploding. On the subject of enjoying Hulu with Europe it is best to maintain using facts as the primary goal. This data possesses helped rolex replica of folks in great britan in addition to with Europe with picking out the perfect VPN service agency there for these individuals. The vital thing you ought to know connected with is usually any type of equipment you happen to be applying to reach Netflix in addition to rolex replica uk. Some people simply want to start using a COMPUTER SYSTEM or maybe MAC to reach most of these internet websites while other people would like to work with the mobile phone devices or maybe game playing programs.

Anh Mai said...

great article, I was very impressed about it, wish you would have stayed next share
Signature:
Versión en facebook en español descargar a los países hablan Español: facebook entrar direto agora , facebook en español para and facebook entrar direto

Hug Day said...

happy hug day 2016 SMS
hug day 2016 Wishes cards greetings
Hug day Date 2016
hug day sms

风骚达哥 said...

20160423 junda
air jordans
cheap oakley sunglasses
kate spade outlet
adidas stan smith
ray ban sunglasses
michael kors outlet
nike air max shoes
cheap omega watches
yeezy boost 350
michael kors outlet online
michael kors outlet online
nike free runs
air jordan uk
michael kors outlet online
pandora charms
ray ban outlet
calvin klein outlet
fitflops sale clearance
toms outlet
nike huarache white
sac longchamp
toms outlet
michael kors outlet clearance
bottega veneta outlet
armani watches
gucci handbags
nike blazer
oakley sunglasses
true religion jeans
cheap jordans
ray bans
hollister
bottega veneta handbags
jimmy choo outlet
oakley sunglasses
converse
prada outlet
reebok shoes
true religion
burberry outlet

Desty Lilian Rosana Putry said...

model meja belajar anak minimalis
warna cat rumah minimalis
model rak tv
model meja makan
taman kolam air
model pintu kamar mandi
model tangga rumah minimalis
warna cat pagar
desain tiang dan keramik teras
kursi sofa ruang tamu minimalis
model tempat tidur bayi
warna cat dapur
model atap rumah minimalis
model plafon minimalis
warna gorden ruang tamu
warna cat rumah tipe 45
model rumah idaman type 36

Libin Huang said...

20160426libinferragamo outlet
pandora outlet
ferragamo shoes
nike air max
ferragamo shoes
hermes belt for sale
michael kors factory outlet
swarovski crystal
ferragamo shoes
michael kors outlet
louis vuitton handbags
louis vuitton handbags outlet
swarovski outlet
beats by dre
cazal outlet
mont blanc pens
longchamp solde
fitflops outlet
cartier sunglasses for men
michael kors outlet
louis vuitton outlet
swarovski crystal
cheap nfl jerseys
adidas outlet store
tory burch outlet
cheap oakley sunglasses
mulberry bags
rolex watches,rolex watches,swiss watches,watches for men,watches for women,omega watches,replica watches,rolex watches for sale,rolex replica,rolex watch,cartier watches,rolex submariner,fake rolex,rolex replica watches,replica rolex
oakley sunglasses
tory burch outlet
ray ban sunglasses
louis vuitton outlet
polo ralph lauren
michael kors uk
tiffany outlet

Yuanyuan Lin said...

7.14llllllyuan"timberland shoes"
"soccer jerseys wholesale"
"longchamp pliage"
"cheap oakley sunglasses"
"true religion jeans"
"louis vuitton pas cher"
"rolex orologi"
"christian louboutin shoes"
"michael kors clearance"
"cheap nba jerseys"
"oakley sunglasses wholesale"
"tory burch shoes"
"tory burch outlet"
"chicago blackhawks jerseys"
"longchamp outlet"
"omega watches"
"adidas trainers"
"cheap nike shoes"
"nike outlet store online"
"michael kors outlet clearance"
"michael kors uk"
"montblanc pens"
"michael kors canada"
"longchamp handbags"
"ray ban sunglasses"
"abercrombie and fitch"
"mcm outlet"
"puma shoes"
"ralph lauren uk"
"nike air max 90"
"rolex watches,rolex watches,swiss watches,watches for men,watches for women,omega watches,replica watches,rolex watches for sale,rolex replica,rolex watch,cartier watches,rolex submariner,fake rolex,rolex replica watches,replica rolex"
"mulberry outlet"
"air max 90"
"ferragamo outlet"
"christian louboutin outlet"
7.14

Fangyaya said...

fitflop sandals
polo ralph lauren outlet
rolex submariner price
michael kors outlet
christian louboutin wedges
ralph lauren polo
louboutin shoes
abercrombie and fitch outlet
coach outlet canada
michael kors outlet
gucci outlet online
cheap louis vuitton handbags
ray bans
cheap oakley sunglasses
copy watches
adidas nmd
michael kors handbags
oakley canada
cheap rolex watches
ray ban sunglasses wholesale
hollister kids
true religion outlet
burberry sale
nfl jerseys
burberry scarf
cheap air jordans
replica watches
coach outlet
oakley sunglasses wholesale
oakley outlet
michael kors uk
ray ban sunglasses
adidas outlet store
rolex watches for sale
cheap oakley sunglasses
adidas originals store
rolex watches
cheap true religion jeans
ralph lauren outlet
kobe 11 shoes
20168.8chenjinyan

dada24 Xu said...

nmd adidas
oakley vault
cheap uggs
adidas nmd
moncler jackets
longchamp
michael kors outlet clearance
polo ralph lauren outlet online
michael kors watches
nike flyknit
2016921caiyan

Paulo said...

In the event that you are beset by a poor FICO score and have the need of vast advance to get you back on your money related feet, you should be placed in contact with a respectable bank willing to make such an advance disregarding your FICO assessment. Payday Loans San-diego

Paulo said...

The Federal Housing Administration offers different sponsored advances with drop up front installment prerequisites to its customer base and these credits are simpler to meet all requirements for. Veteran issues advances likewise permit administration and military staff to get the home advances with simple up front installment. Payday Loans

John said...

cheap rolex watches
hugo boss suits
ugg
michael kors uk
michael kors outlet clearance
ugg outlet online
cheap jordan shoes
canada goose jackets uk
yeezy shoes
cheap jerseys wholesale
uggs sale
adidas yeezy boost 350
authentic louis vuitton handbags
ugg canada sale
ugg boots
louis vuitton outlet online
michael kors outlet store
michael kors
ed hardy clothing
ray ban glasses
michael kors
michael kors uk
red bottom shoes
fitflops
chaussure louboutin
coach factory outlet online
true religion jeans outlet
levi's jeans
ed hardy store
20161102yuanyuan

Meiqing Xu said...

ugg boots on sale
converse outlet
rolex daytona
polo ralph lauren outlet online
coach outlet
cheap nfl jerseys
timberland boots outlet
rolex watches
true religion jeans
gucci outlet
2016121caiyan

kelinci said...

great thanks.
Kelinci
Jual Kelinci
Kelinci
Perkelincian
Kelinci

mohit sharma said...

Valentine week is nearing to us we all are ready to enjoy this day with our lady. So download latest Hug day 2017 hd images for your lady.

chenmeinv0 said...

michael kors
nike air max 2017
longchamp handbags
timberland boots
adidas trainers
converse shoes
mizuno running shoes
ray ban canada
true religion outlet
cheap jordan shoes
hzx20170228

lookandlike said...

BlackMart Pro

huali10 Cai said...

rolex watches for sale
louis vuitton
cheap jordans for sale
air max 90
longchamp outlet
nike outlet store online
tory burch outlet online
futbol baratas
cheap oakley sunglasses
michael kors outlet clearance
qqqqqing20170411

Unknown said...

cheap replica watches
air max 90
iphone case uk
michael kors handbags
ralph lauren outlet
michael kors canada
nike air max 90
coach outlet
michael kors outlet clearance
michael kors outlet
chanyuan2017.05.08

dong dong23 said...

calvin klein jeans
vans outlet
coach bags
christian louboutin shoes
ralph lauren outlet
michael kors outlet clearance
michael kors handbags
yeezy boost 350 v2
louis vuitton outlet online
birkenstock shoes
2017.5.11chenlixiang

xjd7410@gmail.com said...

coach handbags outlet
ralph lauren outlet
kate spade uk
true religion jeans
mac cosmetics sale
ray-ban sunglasses
coach outlet online
ralph lauren
true religion jeans
new balance outlet
chanyuan2017.05.24

شركة المثالية لتنظيف said...

شركة تسليك مجارى بالدمام

raybanoutlet001 said...

toms shoes
nike huarache
valentino outlet
ed hardy
michael kors handbags
fitflops
mont blanc outlet
atlanta falcons jerseys
nike air max 90
nike huarache