Accessing Object History Programmatically Using the SDK

I wrote a quick sample console application to show how to use the SDK to access the history information about objects.  The output looks like this:


In this example, I created an incident and then changed the title on it.  That created two “transactions”.  Each transaction has its own date/time stamp and an indication of which user initiated the transaction (FABRIKAM\Administrator).  Then each of the property value changes are listed and then the relationship add/remove actions that happened.

The code itself is a little bit tricky to figure out on your own, but with the example below it should be pretty easy to figure out:



I’ve attached the code project as an attachment to this blog post.