How to change the Workflow History list programmatically?
1: SPSite spSite = new SPSite("https://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);
Comments
Anonymous
August 27, 2008
PingBack from http://informationsfunnywallpaper.cn/?p=2612Anonymous
August 28, 2008
Very interesting. What's the business purpose of this? Will any list do or does it need have particular columns set up, etc?