PowerShell Activity - creates a new Site based on the Workflow's List Item Title

Oct 27, 2008 at 7:44 PM
Hi

The idea is to  creates a new Site based on the Workflow's List Item Title, but using an site "TEMPLATE".
The list use by the workflow is on site 0 "zero" and we want to create sub-site below site 0 ( Ex : site "A" level -1 ; site "B" level -1)
But if we have a sub-site with the same name of the new sub-site we want to create, the workflow will stop.

Best regards



Coordinator
Oct 28, 2008 at 9:18 PM
Hi,

$web.Webs.Add($item.ID.ToString(),$item.Title,"Created by PowerShell",1031,"STS#0",$false,$false);
$web.Dispose();

The first param is the url, the url have to be unique.

Bye, Christian