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)
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