Share via


CommonScriptURL Property

CommonScriptURL Property

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.

Contains a URL to the item containing the shared script functions referenced in the Condition and Action scripts.

Applies To

IProcessDefinition Interface

Type Library

Microsoft CDO Workflow Objects for Microsoft Exchange

DLL Implemented In

CDOWF.DLL

Syntax

[Visual Basic]Property CommonScriptURL As String

[C++]HRESULT get_CommonScriptURL(BSTRpVal);
HRESULT put_CommonScriptURL(BSTR Val);

Parameters

  • pVal
    Returns the value of the CommonScriptURL property as a reference to a BSTR.
  • Val
    Sets the value of the CommonScriptURL property to the value of the BSTR.

Remarks

This property corresponds directly to the Exchange store property https://schemas.microsoft.com/cdo/workflow/commonscripturl. Applications can also use Microsoft ActiveX Data Objects (ADO), OLE DB, or WebDAV to update this property directly.

You can think of this as the location of your "include" file. You should save your common script functions in a Unicode file at the location specified by this URL. Save the CommonScript file to this URL before setting this property to avoid problems with different versions.

You can use either an absolute URL or a relative URL for this property. If you use a relative URL, it must refer to an item in the same folder or a subfolder of the event sink registration item. Use the string "self" to indicate that the commonscript text is stored as the default file stream on the ProcessDefinition item.

Example

[Visual Basic]

Dim DomainName As String Dim FolderName As String Dim CommonScriptItem As String

' set your own values to these variables: DomainName = "yourserver.example.com" FolderName = "Workflow1" CommonScriptItem = "CommonScript.txt"

Dim strURL As String strURL = "file://./backofficestorage/" _ & DomainName _ & "/Public Folders/" _ & FolderName & "/" _ & CommonScriptItem

Dim iPd As CDOWF.ProcessDefinition Set iPd = New CDOWF.ProcessDefinition

iPd.CommonScriptURL = strURL

See Also

Conditions and Actions

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.