In this article we will be seeing how to enable item scheduling in SharePoint 2010. I have created a document library "Doc Library". Go to Document Library (Doc Library) => Library Settings => General Settings =>Manage Item Scheduling => you will be getting the following error message. Go to Document Library (Doc Library) => Library Settings => General Settings =>Versioning Settings =>Do the following Go to Document Library (Doc Library) => Library Settings => General Settings =>Manage Item Scheduling => now you will be able to enable item scheduling. Programmatically enable or disable item scheduling:
namespace ItemScheduling { class Program { static void Main(string[] args) { using (SPSite site = new SPSite("http://serverName:1111/")) { using (SPWeb web = site.RootWeb) { SPList list=web.Lists["Shared Documents"]; list.EnableModeration = true; list.EnableMinorVersions = true; list.Update();
//To enable Scheduling in the list Microsoft.SharePoint.Publishing.PublishingWeb.EnableScheduling(list);
//To disable Scheduling in the list Microsoft.SharePoint.Publishing.PublishingWeb.DisableScheduling(list); } } } } }
Using PowerShell enable or disable item scheduling: $site=Get-SPSite "http://serverName:1111/" $web=$site.RootWeb $list=$web.Lists $list.EnableModeration=$true $list.EnableMinorVersions=$true # To enable Scheduling in the list [Microsoft.SharePoint.Publishing.PublishingWeb]::EnableScheduling($list) # To disable Scheduling in the list [Microsoft.SharePoint.Publishing.PublishingWeb]::DisableScheduling($list)
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: