<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>farhanfaiz&#039;s Weblog - SharePoint 2003/2007/2010</title>
	<atom:link href="http://farhanfaiz.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://farhanfaiz.wordpress.com</link>
	<description>Bits and Bytes of SharePoint 2003/2007/2010</description>
	<lastBuildDate>Mon, 23 Jan 2012 12:01:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='farhanfaiz.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>farhanfaiz&#039;s Weblog - SharePoint 2003/2007/2010</title>
		<link>http://farhanfaiz.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://farhanfaiz.wordpress.com/osd.xml" title="farhanfaiz&#039;s Weblog - SharePoint 2003/2007/2010" />
	<atom:link rel='hub' href='http://farhanfaiz.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SharePoint Designer 2010: Login with different credentials</title>
		<link>http://farhanfaiz.wordpress.com/2012/01/23/sharepoint-designer-2010-login-with-different-credentials/</link>
		<comments>http://farhanfaiz.wordpress.com/2012/01/23/sharepoint-designer-2010-login-with-different-credentials/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 11:59:10 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[credential]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[SPD 2010]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=746</guid>
		<description><![CDATA[Scenario: We need to login SharePoint Designer 2010 using different credentials. Resolution: SharePoint Designer 2010 has icon on left bottom which allows to login using different credentials.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=746&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Arial;font-size:10pt;"><strong>Scenario:</strong><br />
</span></p>
<p><span style="font-family:Arial;font-size:10pt;">We need to login SharePoint Designer 2010 using different credentials.<br />
</span></p>
<p><span style="font-family:Arial;font-size:10pt;"><strong>Resolution:</strong><br />
</span></p>
<p><span style="font-family:Arial;font-size:10pt;">SharePoint Designer 2010 has icon on left bottom which allows to login using different credentials.<br />
</span></p>
<p><img src="http://farhanfaiz.files.wordpress.com/2012/01/012312_1155_sharepointd1.png?w=480" alt="" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/746/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=746&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2012/01/23/sharepoint-designer-2010-login-with-different-credentials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>

		<media:content url="http://farhanfaiz.files.wordpress.com/2012/01/012312_1155_sharepointd1.png" medium="image" />
	</item>
		<item>
		<title>SharePoint: Associate Workflow with a list programmatically</title>
		<link>http://farhanfaiz.wordpress.com/2012/01/05/sharepoint-associate-workflow-with-a-list-programmatically/</link>
		<comments>http://farhanfaiz.wordpress.com/2012/01/05/sharepoint-associate-workflow-with-a-list-programmatically/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 14:43:06 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[workflow]]></category>
		<category><![CDATA[Association]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[programmatically]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=730</guid>
		<description><![CDATA[Scenario: We need to associate a workflow with a list or create an instance of workflow for a list using SharePoint Object Model (OM) Resolution: In order to associate workflow with a list, we will be using CreateListAssociation method of SPWorkflowAssociaition class. We need following four values: baseTemplate &#8211; The workflow template on which to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=730&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Arial;"><strong>Scenario:</strong><br />
</span></p>
<p><span style="font-family:Arial;">We need to associate a workflow with a list or create an instance of workflow for a list using SharePoint Object Model (OM)<br />
</span></p>
<p><span style="font-family:Arial;"><strong>Resolution:</strong><br />
</span></p>
<p>In order to associate workflow with a list, we will be using <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowassociation.createlistassociation.aspx">CreateListAssociation</a> method of SPWorkflowAssociaition class. We need following four values:</p>
<ul>
<li>baseTemplate &#8211; The workflow template on which to base this workflow association.</li>
<li>Name &#8211; The name to give this workflow association.</li>
<li>taskList &#8211; The task list on which to create workflow tasks for this workflow association.</li>
<li>historyList &#8211; The list to which to log workflow history events</li>
</ul>
<p>Code is as under:</p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span>(<span style="color:#2b91af;">SPSite</span> spSite = <span style="color:blue;">new </span><span style="color:#2b91af;">SPSite</span>(<span style="color:#a31515;">&#8220;SiteURL&#8221;</span>))<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">{<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:#2b91af;">SPWeb</span> spWeb = spSite.OpenWeb();</span></p>
<p><span style="color:#2b91af;">SPList</span><span style="font-family:Consolas;font-size:9pt;"> assocList = spWeb.Lists[</span><span style="color:#a31515;">"NameOfTheList"</span><span style="font-family:Consolas;font-size:9pt;">];</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:#2b91af;">SPWorkflowTemplate</span> wflTemplate = spWeb.WorkflowTemplates.GetTemplateByName(<span style="color:#a31515;">&#8220;NameOfWorkflowTemplate&#8221;</span>, System.Globalization.<span style="color:#2b91af;">CultureInfo</span>.CurrentCulture);</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:#2b91af;">SPList</span> wflTaskList = spWeb.Lists[<span style="color:#a31515;">"Tasks"</span>];</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:#2b91af;">SPList</span> wflHistoryList = spWeb.Lists[<span style="color:#a31515;">"Workflow History"</span>];</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:#2b91af;">SPWorkflowAssociation</span> wflAss = <span style="color:#2b91af;">SPWorkflowAssociation</span>.CreateListAssociation(wflTemplate, <span style="color:#a31515;">&#8220;NameOfTheWorkflow&#8221;</span>, wflTaskList, wflHistoryList);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> wflAss.AutoStartChange = <span style="color:blue;">false</span>;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> wflAss.AutoStartCreate = <span style="color:blue;">false</span>;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> wflAss.AllowManual = <span style="color:blue;">true</span>;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> spWeb.AllowUnsafeUpdates = <span style="color:blue;">true</span>;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> assocList.AddWorkflowAssociation(wflAss);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> assocList.Update();<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> spWeb.AllowUnsafeUpdates = <span style="color:blue;">false</span>;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">}<br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/730/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=730&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2012/01/05/sharepoint-associate-workflow-with-a-list-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint: Workflow Migration</title>
		<link>http://farhanfaiz.wordpress.com/2012/01/03/sharepoint-workflow-migration/</link>
		<comments>http://farhanfaiz.wordpress.com/2012/01/03/sharepoint-workflow-migration/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 12:50:51 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[workflow]]></category>
		<category><![CDATA[InfoPath Form]]></category>
		<category><![CDATA[Migrate]]></category>
		<category><![CDATA[OOTB workflow]]></category>
		<category><![CDATA[SharePoint Designer 2007]]></category>
		<category><![CDATA[SharePoint Designer 2010]]></category>
		<category><![CDATA[SPD Workflows]]></category>
		<category><![CDATA[Workflows]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=722</guid>
		<description><![CDATA[This is the second post related to SharePoint workflows. In first post, we have looked at the implementation details of the OOTB and SPD workflows. In the this post, we will look at the migration of OOTB and SPD 2010 workflows from one list to other or from one form to other. Migration of Workflows: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=722&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the second post related to SharePoint workflows. In first <a href="http://farhanfaiz.wordpress.com/2012/01/02/sharepoint-workflows-implementation/">post</a>, we have looked at the implementation details of the OOTB and SPD workflows. In the this post, we will look at the migration of OOTB and SPD 2010 workflows from one list to other or from one form to other.</p>
<p style="text-align:justify;"><strong>Migration of Workflows</strong>: In order to migrate workflow from one site to other or from one server to other, we need to take care of three or four files mentioned <a href="http://farhanfaiz.wordpress.com/2012/01/02/sharepoint-workflows-implementation/">previously</a>. These files contain hard coded list and site GUID along with other details.</p>
<p style="text-align:justify;">In case of OOTB workflow, instance details are stored in content database and can be seen in the table of &#8220;WorkflowAssociation&#8221;. Column &#8220;InstantiationParams&#8221; contains the details of users, order, due date etc. in XML format while other columns have of site / web / list IDs, name / description of workflow, task / history list IDs and names.</p>
<p style="text-align:justify;">In case of SPD workflows, the definitions of workflow files are stored in list &#8220;workflows&#8221; created at the root of each site and web. In case of SPD 2007, files generated for a workflow are xoml, xoml.wfconfig.xml, aspx and xoml.rules if rules are used in the workflow.</p>
<p style="text-align:justify;">Moving back to our original topic of migration, we need to change the GUID / ID of lists that are coded in xoml.wfconfig.xml file and you are done. A lot of third party workflow migrators are available but if you are interested in an open source solution, codeplex gives you hope.</p>
<p style="text-align:justify;"><a href="http://spwflmigrator.codeplex.com/">http://spwflmigrator.codeplex.com/</a></p>
<p style="text-align:justify;">This is a good resource for starting. Thanks <a href="http://www.codeplex.com/site/users/view/rene_peinl">rane_peinl</a> <span style="font-family:Wingdings;">J</span></p>
<p style="text-align:justify;">In case of SPD 2010 workflows, files generated for a workflow are xoml, xoml.wfconfig.xml, xsn and xoml.rules if rules are used in the workflow. The big difference is the implementation of initiation form. In SPD 2007 workflow, initiation form is aspx page while in case of SPD 2010, initiation form is an InfoPath form. If you export the InfoPath form, add .cab with the form name and extract it, you will be able to find files that are generated as part of InfoPath form.</p>
<p style="text-align:justify;"><img src="http://farhanfaiz.files.wordpress.com/2012/01/010312_1247_sharepointw1.png?w=480" alt="" /></p>
<p style="text-align:justify;">When we tried to migrate SPD 2010 workflow from one list to other, we were able to read xoml.wfconfig.xml and replace all the related IDs with the destination but we are unable to create a working InfoPath form. Although InfoPath is migrated successfully but when we try to start workflow, &#8220;Form has some error&#8221; message appeared. Creating a working initiation form for the migrated workflow doesn&#8217;t seem to be happening.</p>
<p style="text-align:justify;">We do have third party solution that claims to migrate SPD 2010 workflow but I am waiting for their support response.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/722/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=722&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2012/01/03/sharepoint-workflow-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>

		<media:content url="http://farhanfaiz.files.wordpress.com/2012/01/010312_1247_sharepointw1.png" medium="image" />
	</item>
		<item>
		<title>SharePoint: Workflows Implementation</title>
		<link>http://farhanfaiz.wordpress.com/2012/01/02/sharepoint-workflows-implementation/</link>
		<comments>http://farhanfaiz.wordpress.com/2012/01/02/sharepoint-workflows-implementation/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 11:36:26 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[workflow]]></category>
		<category><![CDATA[List workflow]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[OOTB workflow]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Designer 2007]]></category>
		<category><![CDATA[SharePoint Designer 2010]]></category>
		<category><![CDATA[SPD]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=713</guid>
		<description><![CDATA[In this article we have tried to explore implementation details of workflows in SharePoint 2007 and 2010. SharePoint provides us with three flavors of workflows, namely, Out Of the Box (OOTB), SharePoint Designer (SPD) and Visual Studio workflows. We will discuss implementation details of OOTB and SPD workflow w.r.t. to SharePoint 2007 (MOSS) and SharePoint [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=713&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">In this article we have tried to explore implementation details of workflows in SharePoint 2007 and 2010. SharePoint provides us with three flavors of workflows, namely, Out Of the Box (OOTB), SharePoint Designer (SPD) and Visual Studio workflows. We will discuss implementation details of OOTB and SPD workflow w.r.t. to SharePoint 2007 (MOSS) and SharePoint 2010.</p>
<p style="text-align:justify;"><strong>Out Of the Box Workflows</strong>: OOTB workflows are workflows which come with SharePoint server installation.</p>
<p style="text-align:justify;">In MOSS, these workflows come in rigid form. You can&#8217;t customize them. The only option available is to create instance of OOTB workflows in different list or libraries and run them as they are. The instance details of OOTB workflows are stored in content database.</p>
<p style="text-align:justify;">In SharePoint 2010, OOTB workflows are also termed as &#8220;Globally Reusable Workflows&#8221;. Other than &#8220;Three State workflow&#8221; which comes with SharePoint Foundations (free of cost), all other workflows comes with server or enterprise licenses. Great news is that these workflows can be customized using SPD 2010. The definition of OOTB workflows can be found using SPD 2010. Open site in SPD 2010 and select &#8220;All Files&#8221;. In the right pane, select &#8220;_catalogs&#8221; and then &#8220;wfpub&#8221;, you will be able to find OOTB workflows.</p>
<p style="text-align:justify;"><img src="http://farhanfaiz.files.wordpress.com/2012/01/010212_1132_sharepointw1.png?w=480" alt="" /></p>
<p style="text-align:justify;"><img src="http://farhanfaiz.files.wordpress.com/2012/01/010212_1132_sharepointw2.png?w=480" alt="" /></p>
<p style="text-align:justify;">
<p style="text-align:justify;">When you customize &#8220;Globally Reusable Workflow&#8221;, the definition of newly created workflow is stored in a list &#8220;workflows&#8221;.</p>
<p style="text-align:justify;"><strong>SharePoint Designer Workflows</strong>: Workflows created using SPD are termed as SPD workflows. They are also called declarative workflows because they consist of Extensible Markup Language (XOML) rather than compile code as in the case of Visual Studio workflows.</p>
<p style="text-align:justify;">In SPD 2007, we have only one type of workflow, namely, List workflow. In case of SPD 2010, we have three different types of workflows, namely, List, Reusable and Site workflows. When we create a new SPD workflow, a list &#8220;workflows&#8221; is created if don&#8217;t exist. Workflows list is not visible in SharePoint UI and can be accessed via SPD or SharePoint Object Model (OM). We can traverse workflows list using OM as under:</p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span> (<span style="color:#2b91af;">SPSite</span> spSite = <span style="color:blue;">new</span> <span style="color:#2b91af;">SPSite</span>(<span style="color:#a31515;">&#8220;Site_URL&#8221;</span>))<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">{<br />
</span></p>
<p><span style="color:#2b91af;">SPWeb</span> spWeb = spSite.OpenWeb();<br />
</span></p>
<p><span style="color:#2b91af;">SPList</span> spList = spWeb.Lists[<span style="color:#a31515;">"workflows"</span>];<br />
</span></p>
<p><span style="color:blue;">foreach</span> (<span style="color:#2b91af;">SPListItem</span> spListItem <span style="color:blue;">in</span> spList.Items)<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span></p>
<p><span style="color:#2b91af;">Console</span>.WriteLine(spListItem.Name);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> }<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">}<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;">In case of SPD, open site in SPD and select &#8220;All Files&#8221;. In the right pane, select &#8220;workflows&#8221; and you will be able to find SPD workflows</p>
<p style="text-align:justify;"><img src="http://farhanfaiz.files.wordpress.com/2012/01/010212_1132_sharepointw3.png?w=480" alt="" /></p>
<p style="text-align:justify;">Workflows list contains all the files related to a particular workflow. For each SPD workflow, three or four files are created depending upon the existence rules or conditions.</p>
<ul>
<li>
<div style="text-align:justify;">xoml – Contains all the activities included in the workflow in Extensible Application Markup Language (XAML) format</div>
</li>
<li>
<div style="text-align:justify;">xoml.wfconfig.xml – Contains details of the list or site GUIDs and start configuration of the workflow</div>
</li>
<li>
<div style="text-align:justify;">xsn or aspx – In MOSS, an aspx page is created for starting workflow. In SharePoint 2010, we have InfoPath form in place of aspx page</div>
</li>
<li>
<div style="text-align:justify;"><span style="font-size:10pt;"><span style="font-family:Arial;">xoml.rules – Contains </span><span style="font-family:Arial;">workflow rules if used</span></span></div>
</li>
</ul>
<p style="text-align:justify;">In the next post we will discuss the issues relating to migration of SPD workflows.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/713/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=713&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2012/01/02/sharepoint-workflows-implementation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>

		<media:content url="http://farhanfaiz.files.wordpress.com/2012/01/010212_1132_sharepointw1.png" medium="image" />

		<media:content url="http://farhanfaiz.files.wordpress.com/2012/01/010212_1132_sharepointw2.png" medium="image" />

		<media:content url="http://farhanfaiz.files.wordpress.com/2012/01/010212_1132_sharepointw3.png" medium="image" />
	</item>
		<item>
		<title>SharePoint 2101: Migrate List Views to SharePoint Online</title>
		<link>http://farhanfaiz.wordpress.com/2011/12/12/sharepoint-2101-migrate-list-views-to-sharepoint-online/</link>
		<comments>http://farhanfaiz.wordpress.com/2011/12/12/sharepoint-2101-migrate-list-views-to-sharepoint-online/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 11:44:17 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Office 365]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Create List View]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[List View]]></category>
		<category><![CDATA[Migrate]]></category>
		<category><![CDATA[SharePoint Online]]></category>
		<category><![CDATA[Update List View]]></category>
		<category><![CDATA[View Web Service]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=705</guid>
		<description><![CDATA[Scenario: We need to migrate List Views from SharePoint 2010 Server to SharePoint Online. We can use Web Services or Client Model. We decided to use Views Web Service. Resolution: First, we created a class which stores view information. public class ListViewInfo { public ListViewInfo() { } [DataMember] public string listName { get; set; } [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=705&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario:</strong></p>
<p>We need to migrate List Views from SharePoint 2010 Server to SharePoint Online. We can use Web Services or Client Model. We decided to use <strong><a href="http://msdn.microsoft.com/en-us/library/views(v=office.12).aspx">Views Web Service</a></strong>.</p>
<p><strong>Resolution:</strong></p>
<p>First, we created a class which stores view information.</p>
<p>public class ListViewInfo</p>
<p>{</p>
<p>public ListViewInfo()</p>
<p>{</p>
<p>}</p>
<p>[DataMember]</p>
<p>public string listName { get; set; }</p>
<p>[DataMember]</p>
<p>public string viewName { get; set; }</p>
<p>[DataMember]</p>
<p>public string viewGUID { get; set; }</p>
<p>[DataMember]</p>
<p>public string openApplicationExtension { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewFields { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewQuery { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode rowLimit { get; set; }</p>
<p>[DataMember]</p>
<p>public string type { get; set; }</p>
<p>[DataMember]</p>
<p>public bool makeViewDefault { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewHeader { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewBody { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewFooter { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewEmpty { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode rowLimitExceeded { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewToolBar { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewAggregations { get; set; }</p>
<p>[DataMember]</p>
<p>public XmlNode viewFormat { get; set; }</p>
<p>}</p>
<p>We created two methods to get views information and to create views.</p>
<p>public static List&lt;ListViewInfo&gt; GetViewDetails(string listUrl)</p>
<p>{</p>
<p>List&lt;ListViewInfo&gt; listViewList = new List&lt;ListViewInfo&gt;();</p>
<p>ListViewInfo listView = new ListViewInfo();</p>
<p>string viewXML = string.Empty;</p>
<p>XmlDocument doc = new XmlDocument();</p>
<p>using (SPSite spSite = new SPSite(&#8220;SiteURL&#8221;))</p>
<p>{</p>
<p>using (SPWeb spWeb = spSite.OpenWeb())</p>
<p>{</p>
<p>SPList spList = spWeb.GetList(listUrl);</p>
<p>SPViewCollection spViewColl = spList.Views;</p>
<p>foreach (SPView spView in spViewColl)</p>
<p>{</p>
<p>viewXML = spView.HtmlSchemaXml;</p>
<p>doc.LoadXml(viewXML);</p>
<p>XmlNode root = doc.FirstChild;</p>
<p>listView.listName = spList.Title;</p>
<p>listView.viewName = root.Attributes["DisplayName"].Value;</p>
<p>listView.viewGUID = root.Attributes["Name"].Value;</p>
<p>listView.viewFields = root.SelectSingleNode(&#8220;/View/ViewFields&#8221;);</p>
<p>listView.viewQuery = root.SelectSingleNode(&#8220;/View/Query&#8221;);</p>
<p>listView.rowLimit = root.SelectSingleNode(&#8220;/View/RowLimit&#8221;);</p>
<p>listView.type = spView.Type;</p>
<p>listView.makeViewDefault = spView.DefaultView;</p>
<p>listView.viewHeader = root.SelectSingleNode(&#8220;/View/ViewHeader&#8221;);</p>
<p>listView.viewFooter = root.SelectSingleNode(&#8220;/View/ViewFooter&#8221;);</p>
<p>listView.viewBody = root.SelectSingleNode(&#8220;/View/ViewBody&#8221;);</p>
<p>listView.viewEmpty = root.SelectSingleNode(&#8220;/View/ViewEmpty&#8221;);</p>
<p>listView.viewToolBar = root.SelectSingleNode(&#8220;/View/ViewToolbar&#8221;);</p>
<p>listView.viewAggregations = root.SelectSingleNode(&#8220;/View/Aggregations&#8221;);</p>
<p>listView.viewFormat = root.SelectSingleNode(&#8220;/View/Formats&#8221;);</p>
<p>listView.openApplicationExtension = spView.OpenApplicationExtension;</p>
<p>listViewList.Add(listView);</p>
<p>listView = new ListViewInfo();</p>
<p>doc.RemoveAll();</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>return listViewList;</p>
<p>}</p>
<p>public static void createOrUpdateListView(List&lt;ListViewInfo&gt; listViewList)</p>
<p>{</p>
<p>ViewSvr.Views viewSrv = new ViewSvr.Views();</p>
<p>viewSrv.Credentials = System.Net.CredentialCache.DefaultCredentials;</p>
<p>viewSrv.Url = &#8220;http://SiteURL/_vti_bin/Views.asmx&#8221;;</p>
<p>if (listViewList.Count &gt; 0)</p>
<p>{</p>
<p>string listName = listViewList[0].listName;</p>
<p>XmlNode viewColl = viewSrv.GetViewCollection(listName);</p>
<p>XmlDocument xmlDoc = new XmlDocument();</p>
<p>xmlDoc.LoadXml(&#8220;&lt;root&gt;&#8221; + viewColl.InnerXml + &#8220;&lt;/root&gt;&#8221;);</p>
<p>XmlNamespaceManager nsmgr = new XmlNamespaceManager(xmlDoc.NameTable);</p>
<p>nsmgr.AddNamespace(&#8220;XYZ&#8221;, &#8220;http://schemas.microsoft.com/sharepoint/soap/&#8221;);</p>
<p>foreach (XPSListView listView in listViewList)</p>
<p>{</p>
<p>XmlNode foundView = xmlDoc.SelectSingleNode(@&#8221;/root/XYZ:View[@DisplayName='" + listView.viewName + "']&#8220;, nsmgr);</p>
<p>if (foundView == null)</p>
<p>{</p>
<p>//add view</p>
<p>XmlNode nv = viewSrv.AddView(listView.listName, listView.viewName, listView.viewFields, listView.viewQuery, listView.rowLimit, listView.type, listView.makeViewDefault);</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>//update view</p>
<p>XmlNode uv = viewSrv.UpdateViewHtml2(listView.listName, foundView.Attributes["Name"].Value, null, listView.viewToolBar, listView.viewHeader, listView.viewBody, listView.viewFooter, listView.viewEmpty, listView.rowLimitExceeded, listView.viewQuery,listView.viewFields, listView.viewAggregations,listView.viewFormat,listView.rowLimit, listView.openApplicationExtension);                    }</p>
<p>foundView = null;</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>P.S. We have used <strong><a href="http://msdn.microsoft.com/en-us/library/views.views.updateviewhtml2(v=office.12).aspx">UpdateViewHtml2 Method</a></strong> to update the view but not able to find <strong>viewProperties</strong>. Please let me know if anyone find the mapping.</p>
<p>Also, please add web reference of <strong><a href="http://msdn.microsoft.com/en-us/library/views(v=office.12).aspx">Views Web Service</a></strong> in your project and replace following line with your web reference</p>
<p>ViewSvr.Views viewSrv = new ViewSvr.Views();</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/705/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=705&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2011/12/12/sharepoint-2101-migrate-list-views-to-sharepoint-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft® Certified Professional Developer ﴾MCPD﴿ &#8211; SharePoint Developer 2010</title>
		<link>http://farhanfaiz.wordpress.com/2011/10/20/microsoft-certified-professional-developer-%ef%b4%bemcpd%ef%b4%bf-sharepoint-developer-2010/</link>
		<comments>http://farhanfaiz.wordpress.com/2011/10/20/microsoft-certified-professional-developer-%ef%b4%bemcpd%ef%b4%bf-sharepoint-developer-2010/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 11:01:44 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[MCPD]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[microsoft sharepoint]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=737</guid>
		<description><![CDATA[Passed “Exam 70-573: PRO: Designing and Developing Microsoft SharePoint 2010 Applications” exam and become MCPD for SharePoint 2010 development.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=737&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Passed “<a href="http://www.microsoft.com/learning/en/us/exam.aspx?id=70-576">Exam 70-573: PRO: Designing and Developing Microsoft SharePoint 2010 Applications</a>” exam and become MCPD for SharePoint 2010 development.</p>
<p><a href="http://farhanfaiz.files.wordpress.com/2012/01/mcpdrgb_1350.gif"><img class="alignleft size-full wp-image-738" style="border-color:black;border-style:solid;border-width:1px;" title="MCPD(rgb)_1350" src="http://farhanfaiz.files.wordpress.com/2012/01/mcpdrgb_1350.gif?w=480" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/737/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/737/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/737/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/737/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/737/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/737/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/737/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/737/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/737/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/737/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/737/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/737/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/737/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/737/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=737&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2011/10/20/microsoft-certified-professional-developer-%ef%b4%bemcpd%ef%b4%bf-sharepoint-developer-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>

		<media:content url="http://farhanfaiz.files.wordpress.com/2012/01/mcpdrgb_1350.gif" medium="image">
			<media:title type="html">MCPD(rgb)_1350</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010: PowerShell script to add in web.config</title>
		<link>http://farhanfaiz.wordpress.com/2011/09/07/sharepoint-2010-powershell-script-to-add-in-web-config/</link>
		<comments>http://farhanfaiz.wordpress.com/2011/09/07/sharepoint-2010-powershell-script-to-add-in-web-config/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 07:43:18 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[PowerShell Script]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[ASP.NET AJAX Control Toolkit]]></category>
		<category><![CDATA[assemblies]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[entrey]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=700</guid>
		<description><![CDATA[Scenario: We need to add an entry in “&#60;assemblies&#62;” section of the “web.config” file of specific web application using power shell script Resolution: Param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)] [Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind] $WebApplication ) $WebApp = $WebApplication.Read() Write-Host $WebApp $configMod = New-Object Microsoft.SharePoint.Administration.SPWebConfigModification $configMod.Name = &#8220;add[@name=""assembly""]&#8220; $configMod.Path = &#8220;/configuration/system.web/compilation/assemblies&#8221; $configMod.Value = &#8220;&#60;add assembly=&#8221;"AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e&#8221;" /&#62;&#8221; $configMod.Sequence [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=700&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario:</strong></p>
<p>We need to add an entry in “&lt;assemblies&gt;” section of the “web.config” file of specific web application using power shell script</p>
<p><strong>Resolution:</strong></p>
<p>Param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)]</p>
<p>[Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind]</p>
<p>$WebApplication</p>
<p>)</p>
<p>$WebApp = $WebApplication.Read()</p>
<p>Write-Host $WebApp</p>
<p>$configMod = New-Object Microsoft.SharePoint.Administration.SPWebConfigModification</p>
<p>$configMod.Name = &#8220;add[@name=""assembly""]&#8220;</p>
<p>$configMod.Path = &#8220;/configuration/system.web/compilation/assemblies&#8221;</p>
<p>$configMod.Value = &#8220;&lt;add assembly=&#8221;"AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e&#8221;" /&gt;&#8221;</p>
<p>$configMod.Sequence = 0</p>
<p>$configMod.Type = 0 #for enum value of SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode</p>
<p>$configMod.Owner = &#8220;Ajax&#8221;</p>
<p>$WebApp.WebConfigModifications.Add($configMod)</p>
<p>$WebApp.Update()</p>
<p>$WebApp.Parent.ApplyWebConfigModifications()</p>
<p>Resource: <a href="http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/14/use-powershell-to-script-changes-to-the-sharepoint-web-config-file.aspx">http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/14/use-powershell-to-script-changes-to-the-sharepoint-web-config-file.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/700/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/700/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/700/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/700/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/700/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/700/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/700/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/700/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/700/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/700/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/700/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/700/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/700/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/700/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=700&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2011/09/07/sharepoint-2010-powershell-script-to-add-in-web-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010: Add ASP.NET AJAX Control Toolkit</title>
		<link>http://farhanfaiz.wordpress.com/2011/08/22/sharepoint-2010-add-asp-net-ajax-control-toolkit/</link>
		<comments>http://farhanfaiz.wordpress.com/2011/08/22/sharepoint-2010-add-asp-net-ajax-control-toolkit/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 10:10:08 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[CodePlex]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.NET AJAX Control Toolkit]]></category>
		<category><![CDATA[WebPart]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/2011/08/22/sharepoint-2010-add-asp-net-ajax-control-toolkit/</guid>
		<description><![CDATA[Scenario: We need to include &#8220;ASP.NET AJAX Control Toolkit&#8221; in our webpart. Resolution: 1 &#8211; Download &#8220;ASP.NET AJAX Control Toolkit&#8221; binary version from following: http://ajaxcontroltoolkit.codeplex.com/releases/view/33804 2 &#8211; Add assembly &#8220;AjaxControlToolkit.dll&#8221; into GAC using gacutil.exe gacutil.exe /i &#8220;AjaxControlToolkit.dll&#8221; 3 &#8211; Add following line in &#8220;&#60;assemblies&#62;&#8221; section of the &#8220;web.config&#8221; file of specific web application &#60;add assembly=&#8221;AjaxControlToolkit, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=694&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Arial;"><strong>Scenario:<br />
</strong></span></p>
<p><span style="font-family:Arial;">We need to include &#8220;ASP.NET AJAX Control Toolkit&#8221; in our webpart.<br />
</span></p>
<p><span style="font-family:Arial;"><strong>Resolution:<br />
</strong></span></p>
<p><span style="font-family:Arial;">1 &#8211; Download &#8220;ASP.NET AJAX Control Toolkit&#8221; binary version from following:<br />
</span></p>
<p><a href="http://ajaxcontroltoolkit.codeplex.com/releases/view/33804">http://ajaxcontroltoolkit.codeplex.com/releases/view/33804</a></p>
<p><span style="font-family:Arial;">2 &#8211; Add assembly &#8220;AjaxControlToolkit.dll&#8221; into GAC using gacutil.exe<br />
</span></p>
<p><span style="font-family:Arial;">gacutil.exe /i &#8220;AjaxControlToolkit.dll&#8221;<br />
</span></p>
<p><span style="font-family:Arial;">3 &#8211; Add following line in &#8220;&lt;assemblies&gt;&#8221; section of the &#8220;web.config&#8221; file of specific web application<br />
</span></p>
<p><span style="font-family:Arial;">&lt;add assembly=&#8221;AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e&#8221; /&gt;<br />
</span></p>
<p><span style="font-family:Arial;">4 &#8211; Add reference of &#8220;AjaxControlToolkit.dll&#8221; in your project for server side and for client side add following line:<br />
</span></p>
<p><span style="font-family:Arial;">&lt;%@ Register Assembly=&#8221;AjaxControlToolkit&#8221; Namespace=&#8221;AjaxControlToolkit&#8221; TagPrefix=&#8221;ajax&#8221; %&gt;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/694/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=694&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2011/08/22/sharepoint-2010-add-asp-net-ajax-control-toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010: PowerShell Script to add / display list as webpart</title>
		<link>http://farhanfaiz.wordpress.com/2011/07/25/sharepoint-2010-powershell-script-to-add-display-list-as-webpart/</link>
		<comments>http://farhanfaiz.wordpress.com/2011/07/25/sharepoint-2010-powershell-script-to-add-display-list-as-webpart/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 07:09:56 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[PowerShell Script]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Discussion Board]]></category>
		<category><![CDATA[Discussion Forum]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[XsltListViewWebPart]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/2011/07/25/sharepoint-2010-powershell-script-to-add-display-list-as-webpart/</guid>
		<description><![CDATA[Scenario: We were required to add / display discussion forum / discussion board as a webpart on a publishing page. Resolution: We used &#8220;XsltListViewWebPart&#8221; webpart to accomplish above requirement $webpart = New-Object Microsoft.SharePoint.WebPartPages.XsltListViewWebPart $webpart.ListId = $list.ID; $webpart.ViewGuid = $list.DefaultView.ID.ToString(); $webpart.AllowClose = $false; $webpart.AllowConnect = $false; $webpart.AllowEdit = $false; $webpart.AllowHide = $false; $webpart.AllowMinimize = $false; $webpart.AllowZoneChange = $false; $webpart.ChromeType = [System.Web.UI.WebControls.WebParts.PartChromeType]::None; $webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope] ::Shared) $webpartmanager.AddWebPart($webpart, &#8220;Zone 1&#8243;, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=687&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Arial;font-size:10pt;"><strong>Scenario:</strong><br />
</span></p>
<p><span style="font-family:Arial;font-size:10pt;">We were required to add / display discussion forum / discussion board as a webpart on a publishing page.<br />
</span></p>
<p><span style="font-family:Arial;font-size:10pt;"><strong>Resolution:<br />
</strong></span></p>
<p><span style="font-family:Arial;font-size:10pt;">We used &#8220;XsltListViewWebPart&#8221; webpart to accomplish above requirement<br />
</span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart</span><span style="color:purple;font-family:Courier New;font-size:10pt;"> <span style="color:black;"><span style="color:red;">= <span style="color:black;"><span style="color:cadetblue;"><strong>New-Object </strong><span style="color:black;"><span style="color:maroon;">Microsoft.SharePoint.WebPartPages.XsltListViewWebPart<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.ListId <span style="color:red;">= <span style="color:black;"><span style="color:purple;">$list<span style="color:black;">.ID;<br />
</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.ViewGuid <span style="color:red;">= <span style="color:black;"><span style="color:purple;">$list<span style="color:black;">.DefaultView.ID.ToString();<br />
</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.AllowClose <span style="color:red;">= <span style="color:black;"><span style="color:purple;">$false<span style="color:black;">;<br />
</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.AllowConnect <span style="color:red;">= <span style="color:black;"><span style="color:purple;">$false<span style="color:black;">;<br />
</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.AllowEdit <span style="color:red;">= <span style="color:black;"><span style="color:purple;">$false<span style="color:black;">;<br />
</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.AllowHide <span style="color:red;">= <span style="color:black;"><span style="color:purple;">$false<span style="color:black;">;<br />
</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.AllowMinimize <span style="color:red;">= <span style="color:black;"><span style="color:purple;">$false<span style="color:black;">;<br />
</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.AllowZoneChange <span style="color:red;">= <span style="color:black;"><span style="color:purple;">$false<span style="color:black;">;<br />
</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpart<span style="color:black;">.ChromeType <span style="color:red;">=<span style="color:black;"> [<span style="color:teal;">System.Web.UI.WebControls.WebParts.PartChromeType<span style="color:black;">]::<span style="color:saddlebrown;">None<span style="color:black;">;<br />
</span></span></span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpartmanager<span style="color:red;">=<span style="color:purple;">$web<span style="color:black;">.GetLimitedWebPartManager(<span style="color:purple;">$pageUrl<span style="color:black;">,</span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;"><span style="color:red;"><span style="color:purple;"><span style="color:black;"><span style="color:purple;"><span style="color:black;"> [<span style="color:teal;">System.Web.UI.WebControls.WebParts.PersonalizationScope<span style="color:black;">]</span></span></span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;"><span style="color:red;"><span style="color:purple;"><span style="color:black;"><span style="color:purple;"><span style="color:black;"><span style="color:teal;"><span style="color:black;">::<span style="color:saddlebrown;">Shared<span style="color:black;">)<br />
</span></span></span></span></span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$webpartmanager<span style="color:black;">.AddWebPart(<span style="color:purple;">$webpart<span style="color:black;">, <span style="color:maroon;">&#8220;Zone 1&#8243;<span style="color:black;">, 0);<br />
</span></span></span></span></span></span></p>
<p><span style="font-family:Arial;font-size:10pt;">You need to set following variables:<br />
</span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$list = Get the reference of list. In our case, it was discussion forum<br />
</span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$pageUrl = Url of the page<br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/687/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=687&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2011/07/25/sharepoint-2010-powershell-script-to-add-display-list-as-webpart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010: PowerShell Script to create Discussion Board / Discussion Forum</title>
		<link>http://farhanfaiz.wordpress.com/2011/07/25/sharepoint-2010-powershell-script-to-create-discussion-board-discussion-forum/</link>
		<comments>http://farhanfaiz.wordpress.com/2011/07/25/sharepoint-2010-powershell-script-to-create-discussion-board-discussion-forum/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 06:43:20 +0000</pubDate>
		<dc:creator>Farhan Faiz</dc:creator>
				<category><![CDATA[PowerShell Script]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[Discussion Board]]></category>
		<category><![CDATA[Discussion Forum]]></category>
		<category><![CDATA[list]]></category>

		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/2011/07/25/sharepoint-2010-powershell-script-to-create-discussion-board-discussion-forum/</guid>
		<description><![CDATA[Scenario: We need to create discussion board / discussion forum using power shell script Resolution: $spWeb = Get-SPWeb $webURL $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DiscussionBoard $spWeb.Lists.Add(&#8220;Discussion Forum&#8221;, &#8220;Custom List&#8221;, [int]$listTemplate) Thanks to my friend Abdur Raheem <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=684&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Arial;"><strong>Scenario:</strong><br />
</span></p>
<p><span style="font-family:Arial;">We need to create discussion board / discussion forum using power shell script<br />
</span></p>
<p><span style="font-family:Arial;"><strong>Resolution:</strong><br />
</span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$spWeb <span style="color:black;"><span style="color:red;">= <span style="color:black;"><span style="color:cadetblue;"><strong>Get-SPWeb </strong><span style="color:black;"><span style="color:purple;">$webURL<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$listTemplate <span style="color:black;"><span style="color:red;">=<span style="color:black;"> [<span style="color:teal;">Microsoft.SharePoint.SPListTemplateType<span style="color:black;">]::<span style="color:saddlebrown;">DiscussionBoard<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></p>
<p><span style="color:purple;font-family:Courier New;font-size:10pt;">$spWeb<span style="color:black;">.Lists.Add(<span style="color:maroon;">&#8220;Discussion Forum&#8221;<span style="color:black;">, <span style="color:maroon;">&#8220;Custom List&#8221;<span style="color:black;">, [<span style="color:teal;">int<span style="color:black;">]<span style="color:purple;">$listTemplate<span style="color:black;">)<br />
</span></span></span></span></span></span></span></span></span></span></p>
<p><span style="font-family:Arial;">Thanks to my friend <a href="http://www.linkedin.com/pub/abdur-raheem/8/240/54">Abdur Raheem</a> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/farhanfaiz.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/farhanfaiz.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/farhanfaiz.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/farhanfaiz.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/farhanfaiz.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/farhanfaiz.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/farhanfaiz.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/farhanfaiz.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/farhanfaiz.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/farhanfaiz.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/farhanfaiz.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/farhanfaiz.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/farhanfaiz.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/farhanfaiz.wordpress.com/684/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=farhanfaiz.wordpress.com&amp;blog=1976579&amp;post=684&amp;subd=farhanfaiz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://farhanfaiz.wordpress.com/2011/07/25/sharepoint-2010-powershell-script-to-create-discussion-board-discussion-forum/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/831bbc9927f84d31b2f36e9d3dc49b2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MF</media:title>
		</media:content>
	</item>
	</channel>
</rss>
