Navigation

Thursday 25 March 2010

Un-Publish a list item programmatically

I wrestled with this one for a while. Although you can go to Version History and there is an option to "unpublish" a version doing this programmatically was very much a pain.

I finally realised that you could do this quite simply without going anywhere near the versioning end of the SharePoint API.
// overwrite the "published" version with a "draft" version
item.ModerationInformation.Status = SPModerationStatusType.Draft;
item.UpdateOverwriteVersion();
This did work in my instance where I knew the "current" version of the item was Published, although I'm not sure if this also works when you have draft versions in edit (i.e. version 1.5)

Monday 8 March 2010

SharePoint 2010 release date (and also my wedding anniversary)

Exciting times and exciting news... the SharePoint 2010 (and Office 2010) release date has finally been confirmed to be 12th May 2010.

The SharePoint team blog posted this up on Friday:
Today, we officially announced that May 12th, 2010, is the launch date for SharePoint 2010 & Office 2010. In addition, we announced our intent to RTM (Release to Manufacturing) this April 2010.
This was further confirmed by the Office 2010 Engineering blog who made this announcement:
For businesses, we will launch the 2010 set of products, including Office 2010, SharePoint 2010, Visio 2010, and Project 2010 worldwide on May 12. To find out more about the Worldwide Business Launch, visit http://sharepoint.microsoft.com/businessproductivity/proof/pages/2010-launch-events.aspx.



For consumers, Office 2010 will be available online and on retail shelves this June. Until then, you can get the Office 2010 beta at www.office.com/beta.


The only problem I have is that May 12th is also my wedding anniversary ...

What do you think? Organise a launch party and cancel the dinner and flowers?? :) (might be more than my wife life is worth)