SCSM Add-on - Advanced History Groomer [w/ Source Code]
Personally I think Cireson could benefit by looking at the source code provided. Since we heavily rely on Cireson, we also heavily depend on their success. Notably, there is code for retrieving SCSM Run As Account credentials for Impersonation.
As for other SCSM 2012 R2 Developers, if you are interested in creating your own C# Workflows using Visual Studio Community, this working example will be of great interest.
Comments
Note: If you have the class GUID, you can get what the viewname is by executing the following SQL Stored Procedure:
I recommend using SCSM Entity Explorer to get the class GUID.