Recently, I was reading a post on how to change the workflow state of Sitecore items programmetically and noticed that I could not compile the example code in later versions of Sitecore. Specifically, the following line in the example code was failing: To fix the…