Offline Records

Spending most of my life in the server side world of web services I rarely pay much attention to offline records in HPRM, other people obviously do given that twice in the past week I have been asked questions about searching for them.

Firstly, it will not work from a web service, offline records require access to the user's local machine.

Now, how do I search from the SDK? Just as I would search for any other object type it turns out.

TrimMainObjectSearch search 
   = new TrimMainObjectSearch(database, BaseObjectTypes.OfflineRecord);
search.SetSearchString("status:Draft");

foreach (OfflineRecord offlineRec in search)
{
   Console.WriteLine(offlineRec.Title);
}