cancel
Showing results for 
Search instead for 
Did you mean: 

VB Script example to update NEW REVISION of a document (.docx)

Kanaga_Sabapath
Champ in-the-making
Champ in-the-making

Can any one please give VB Script example to update a document (.docx) with new revision. The document is related to a document type which is configured as "allow multiple revisions

".

After updating the document through script, we need to update the revision (as like the below code of C#)

******************** C# Code ************************ Starts

       const string MSWORDFORMAT = "MS Word Document";

      FileType fileType = app.Core.FileTypes.Find(MSWORDFORMAT);

       Document document = app.Core.GetDocumentByID(args.Document.ID);

      StoreRevisionProperties storeRevisionProperties = app.Core.Storage.CreateStoreRevisionProperties(document, fileType);

       List<string> fileList = new List<string>();

      fileList.Add(strDocPath);

      Document newDocument = app.Core.Storage.StoreNewRevision(fileList, storeRevisionProperties);                       

******************** C# Code ************************ Ends

Basically, I am trying to resolve the attached error in Thick client - after updating a document through a vb script code.

0 REPLIES 0
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.