SDMSHelper.RevertBinaryDocumentEx
Syntax | Parameters | Return Value |
---|---|---|
Function SDMSHelper.RevertBinaryDocumentEx( _ BinaryDocumentID As Integer, _ ToRevision As Integer, _ RevertInfo As DocumentRevertInfo) As Boolean |
The ID of the document. Type: Integer The revision to roll back to. Type: Integer Comments about the roll back. Type: DocumentRevertInfo |
Boolean |
SVB Example
Reverting a document via SDMS:
Sub Main 'Run the example "Approving a document via SDMS" prior to running 'this one. It will assume a file named "/Blake's Materials/WEIGHTS Descriptives Script.svb" 'is in the system. Dim oOM As ObjectManager 'Reconnect into Enterprise Set oOM = New ObjectManager oOM.Reconnect Application 'Revert the document to its initial version. Dim revertInfo As New DocumentRevertInfo revertInfo.DocumentComment = "Unapproving this document, it's still under review" oOM.SDMSHelper.RevertBinaryDocumentEx( _ oOM.BinaryDocuments("/Blake's Materials/WEIGHTS Descriptives Script.svb").ID, _ 1, revertInfo) oOM.Disconnect End Sub
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.