Share via


DisableSuccessEntries Method

DisableSuccessEntries Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Allows the user to configure entry types for AuditTrail.

Applies To

IProcessInstance Interface

Type Library

Microsoft CDO Workflow Objects for Microsoft Exchange

DLL Implemented In

CDOWF.DLL

Syntax

[Visual Basic]Sub DisableSuccessEntries
(
    bDisable As Boolean
)

[C++]HRESULT DisableSuccessEntries (     VARIANT_BOOL bDisable );

Parameters

  • bDisable
    Specifies whether you want to enable or disable the logging of success entries.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If you are using the Workflow Designer for Exchange 2000 Server, you do not need to use this method. The built-in workflow components call this method based on your selections.

You can configure the Audit Trail provider to not log success entries to the audit trail using the "https://schemas.microsoft.com/cdo/workflow/disablesuccessentries" property with the "OnSyncSave;OnSyncDelete" event registration item. Setting this property to TRUE disables success entries.

If you are an advanced developer, you can accomplish the same thing using the DisableSuccessEntries() method by passing in a VARIANT_TRUE parameter. This assumes you are writing your own event sink and have already created a ProcessInstance object.

Example

This example shows the event registration for "OnSyncSave;OnSyncDelete". You set the "https://schemas.microsoft.com/cdo/workflow/disablesuccessentries" Exchange store property in this registration event record.

[Visual Basic]

EventRuleItem = "OnSyncSave_OnSyncDelete_Rule"

'assumes sFolderURL is a string representing 'your application folder where you want to 'register the events sEvtRegURL = sFolderURL & EventRuleItem

'assumes sProcDefURL is a string representing 'the process definition item for this folder ProcessDefinitionURL = sProcDefURL

Rec.Open sEvtRegURL, , adModeReadWrite, _ adCreateNonCollection Or adCreateOverwrite, _ adDelayFetchFields If Err.Number <> 0 Then Debug.Print "Failed to open event registration record." & Err.Description End If

With Rec Set Flds = .fields Flds("DAV:contentclass") = "urn:content-class:storeeventreg" Flds("https://schemas.microsoft.com/exchange/events/EventMethod") = "OnSyncSave;OnSyncDelete" Flds("https://schemas.microsoft.com/exchange/events/SinkClass") = "CdoWfEvt.EventSink.1" Flds("https://schemas.microsoft.com/exchange/events/Criteria") = "WHERE $DAV:ishidden$ = FALSE" Flds("https://schemas.microsoft.com/cdo/workflow/defaultprocdefinition") = ProcessDefinitionURL Flds("https://schemas.microsoft.com/cdo/workflow/adhocflows") = 0 Flds("https://schemas.microsoft.com/cdo/workflow/enabledebug") = True Flds("https://schemas.microsoft.com/cdo/workflow/disablesuccessentries") = False Flds.Update .Close End With

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.