04-20-2016 02:32 AM
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.
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.