Posts

Showing posts from December, 2018

Export Sitecore Workflow History

Image
Because of audit purposes, exporting the workflow history might be a useful tool. In this post I will show you how we can create a custom button to export the workflow history to a csv file.

First, we need to create a button in the Core Database. We are going to use a Small Button and the path I chose to create the item at is: /sitecore/content/Applications/Content Editor/Ribbons/Chunks/Workflow/Export History (You can place the button anywhere you like, I just decided to place it in the workflow chunk as shown below):


After creating the small button, we need to fill in some information like the header, icon, click and tooltip fields:


On the click field, we define the command we are going to trigger when the button is clicked. I created a new command called item:ExportWorkflowHistory. In order to register this new command we need to create a config patch like this:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <commands&g…