Nishand's Blog

Welcome to my personal blog, All the information in this bogs is my ideas,findings and thoughts on .Net, Asp.Net and SharePoint.
ALL POSTING ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND

How to change the Workflow History list programmatically?

   1: SPSite spSite = new SPSite("http://localhost");
   2: SPWeb spWeb = spSite.OpenWeb();
   3: SPList spList = spWeb.Lists["Shared Documents"];
   4: SPList workflowlist = spWeb.Lists["NewHistoryLibary"];
   5: SPWorkflowAssociation association = spList.WorkflowAssociations[0];
   6: association.SetHistoryList(workflowlist);
   7: spList.UpdateWorkflowAssociation(association); 
Published Wednesday, August 27, 2008 3:58 PM by nishandv

Comments

 

discount furniture » How to change the Workflow History list programmatically? said:

August 27, 2008 7:07 PM
 

pagalvin said:

Very interesting.

What's the business purpose of this?  

Will any list do or does it need have particular columns set up, etc?

August 28, 2008 8:10 AM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker