Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPWorkflow Class
SPWorkflow Methods
 CreateHistoryEvent Method (Int32, O...
Community Content
In this section
Statistics Annotations (1)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
SPWorkflow.CreateHistoryEvent Method (Int32, Object, SPMember, String, String, String) (Microsoft.SharePoint.Workflow)
Writes a workflow history event to the specified workflow history list.

Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Sub CreateHistoryEvent ( _
    eventId As Integer, _
    groupId As Object, _
    user As SPMember, _
    outcome As String, _
    description As String, _
    otherData As String _
)
Visual Basic (Usage)
Dim instance As SPWorkflow
Dim eventId As Integer
Dim groupId As Object
Dim user As SPMember
Dim outcome As String
Dim description As String
Dim otherData As String

instance.CreateHistoryEvent(eventId, groupId, user, outcome, description, otherData)
C#
public void CreateHistoryEvent (
    int eventId,
    Object groupId,
    SPMember user,
    string outcome,
    string description,
    string otherData
)

Parameters

eventId

The type of workflow event.

groupId

The ID of the group to which this workflow history event belongs.

user

The user who is responsible for the workflow history event.

outcome

A description of the workflow event, limited to 255 characters. This information is displayed on the workflow status page.

description

A longer description of the workflow event. This information is displayed on the workflow status page.

otherData

Any other data that should be captured concerning the workflow history event. This information is not displayed on the workflow status page.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Possibly Helpful Example      M. Blumenthal   |   Edit   |   Show History

This thread in the forums has an example of calling this method:

http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/5bf81995-c32e-446d-b35e-992066dfd040

--Michael Blumenthal

http://blumenthalit.net/

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker