This topic has not yet been rated - Rate this topic

SPWorkflow.CreateHistoryEvent method (Int32, Object, SPMember, String, String, String)

Writes a workflow history event to the specified workflow history list.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public void CreateHistoryEvent(
	int eventId,
	Object groupId,
	SPMember user,
	string outcome,
	string description,
	string otherData
)

Parameters

eventId
Type: System.Int32
The type of workflow event.
groupId
Type: System.Object
The ID of the group to which this workflow history event belongs.
user
Type: Microsoft.SharePoint.SPMember
The user who is responsible for the workflow history event.
outcome
Type: System.String
A description of the workflow event, limited to 255 characters. This information is displayed on the workflow status page.
description
Type: System.String
A longer description of the workflow event. This information is displayed on the workflow status page.
otherData
Type: System.String
Any other data to be captured about the workflow history event. This information is not displayed on the workflow status page.
ExceptionCondition
ArgumentException

groupId is not an int.

The eventId parameter takes an enumerated type, based on the SPWorkflowHistoryEventType enumeration.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.