My first HPRM SDK application
Introduction
If you are not a programmer but want to do some simple HPRM SDK programming here is a start. It is actually quite easy to achieve some fairly powerful outcomes, like anything the curve gets steeper as your ambition grows.
The Video
Please forgive my constant sniffing in this video, I have been battling a cold for a week.
The Code
using (Database database = new Database()) { database.Id = "F1"; database.Connect(); using (TrimMainObjectSearch search = new TrimMainObjectSearch(database, BaseObjectTypes.Record)) { search.SetSearchString("electronic"); using (StreamWriter textFile = File.CreateText(@"d:\junk\myexport.csv")) { foreach (Record record in search) { textFile.WriteLine(string.Format( "{0},{1},{2}", record.Uri, record.Number, record.Title)); } } } }
Written on June 18, 2015