BlueCielo Web Parts 2012 Administrator's Guide | BlueCielo ECM Solutions

You are here: VBScript functions > PublishDocument function

PublishDocument function

Called when the function configured for the CanPublishDocument setting does not return False and a BlueCielo Web Parts user selects the Publish command in a SharePoint library. The name of the function is configured in the SharePoint site web.config file as described in Configuring the Publish function names.

Syntax
PublishDocument (DocumentID)
Parameters
Name Description

DocumentID

The ID of a document to be published.

Remarks

This function should, at a minimum, set the property configured for the PublishStatusProperty setting described in Configuring the Publish function names to 1 to indicate that the document is published.

Example
Function PublishDocument()
    Document.Property("Custom.PublishStatus") = 1
    Document.Log("Published")
    Set PublishDocument = Nothing
End Function

Related concepts

VBScript functions

Related tasks

CanPublishDocument function


Copyright © 2000-2012 BlueCielo ECM Solutions

www.bluecieloecm.com