Monday, May 19, 2008

Missing Completed Workflows History

Hi All,

Many times we require to have the history for the workflows which are completed.
The problem is once workflow is completed you don't find any way to check the history for it.

Actually when you are working with workflow, there is LogHistoryActivity which we can use to keep track of all actions that are performed through code.

But the problem is there's no way to find out the previous workflow history.

All you can do it make one more list which is having same number of fields and same type of fields in it just like workflowHistory list.

Fetch all data in eventhandler ItemAdded event of workflowHistory list and there in the code you add all datas that you want to enter into your own list. this way you can have these data of your change always in your list.

No comments:

Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to