This topic has not yet been rated - Rate this topic

SPWorkflowAssociation.SetHistoryList Method

Specifies the list to which to log workflow history events for this workflow association.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public void SetHistoryList(
	SPList list
)

Parameters

list
Type: Microsoft.SharePoint.SPList
The list to which to log workflow history events.
Exception Condition
ArgumentNullException

list is null.

ArgumentException

The template property of the list parameter is not SPListTemplateType.WorkflowHistory.

- or -

The task list and the history list of the association are not in the same website.

If the workflow template does not require a history list, this method does nothing and returns; otherwise, this method sets the history list to which to log workflow history events for this workflow association.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ