Tag Archives: Properties

Maintain SPFile version comment and last modified date when moving documents

In overview the strategy is one of replaying history. Each version of the file is reposted to the document library. The comment and last modified date is handled with a combination of SPFile.Checkin() and SPListItem.Update(). Intrigued? Then read on….

Posted in SharePoint, SharePoint 2007, SharePoint 2010 | Tagged , , | Leave a comment

SharePoint dates

You would like to think that SharePoint records the Creation and Modification dates for each item once only. Wrong! Take a document in a document library. The item is seen as both an SPListItem and an SPFile. The created and … Continue reading

Posted in SharePoint, SharePoint 2007, SharePoint 2010 | Tagged , , | Leave a comment

How to enforce site directory listing

If you have been trawling the SharePoint API looking for a way to set ‘Enforce Site Directory Listing’ then you must have given up.  Why? It’s simply not there!  It can be found in the Web’s property bag and this is how … Continue reading

Posted in SharePoint | Tagged , , , | Leave a comment

Returning values from built in workflow extended properties using SPBuiltInFieldId

Have you ever tried returning the value of built in workflow extended properties and found yourself grappling with GUIDs.  Try this instead. How to return a Task status value from workflow extended properties. A full list of SPBuiltInFieldIds can be found … Continue reading

Posted in SharePoint | Tagged , , | Leave a comment