Blog Archives

Word document properties in Record Center

Doing some work with a SharePoint 2010 Record Center and there is a curious omission.  SharePoint can read the properties of a Word document and pre-fill library column metadata.  These standard columns (Author, Keywords etc) work out of the box on any document library except for those created in the Record Center.

This had me scratching my head for a while, until I found this posting from Eric Schupps which explains that the Document Parser is switched off by default in Record Center.

To fix, a quick PowerShell script.

$site = Get-SPSite -Identity "http://your.url.to.site.here"
$web = $site.OpenWeb()
$web.ParserEnabled = $true
$web.Update()
$web.Dispose()
$site.Dispose()

BTW, it is worth following Eric Schupps, aka the SharePoint Cowboy as he is a regular speaker at SharePoint conferences and groups. Can’t miss him. Always wears a big ten gallon hat. I’m not sure which American state he is from, I think it might be Illinois.

Advertisements

Programmatically determining whether a List Item is a Record

Was trying to find this one, and the path / references aren’t all that clear.  So…

  1. Add a reference to Microsoft.Office.Policy
  2. In the Usings add using Microsoft.Office.RecordsManagement.RecordsRepository
  3. Get the ListItem or File
  4. Records.IsRecord(item) returns true or false if it is a record

The key bit is figuring out RecordsManagement.RecordsRepository is part of Microsoft.Office.Policy.

MSDN