Previously we used string WorkflowPipelineArgs.Comments which seems got obsolete now and suggests to use StringDictionary WorkflowPipelineArgs.CommentFields.

By using Reflector tool I found that to read comments I should write as below:


My question is why it was changed like that and what other values we can find from CommentFields property?


You can't find any new fields there out of the box. But Sitecore recently introduced the Standard Comment Template, thereby making it possible to cook up more advanced authoring scenarios.

enter image description here

Grant Bartlett has a good example of what that could look like in Sitecore 8: Advanced workflow commenting

In short; it was changed because Sitecore now has the ability to attach a "Comment Template" to workflows, and therefore it is now easier to extend for specific needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.