You are viewing limited content. For full access, please sign in.

Question

Question

Volume Location of previous version

asked on June 28, 2017

Hi All,

 

How do you find out the location of the electronic file for prevoius versions?

 

I can see when creating a new version of an electronic document (Word/Excel), in the volume a new document is created. How can I find the volume location of previous versions of the same document?

 

Cheers!

0 0

Answer

SELECTED ANSWER
replied on June 28, 2017

The edoc path for past versions is not exposed in the UI as far as I know, but it can be retrieved using the SDK:

DocumentInfo doc = Document.GetDocumentInfo(docId, session);
foreach (DocumentVersion version in doc.GetVersionHistory())
{
    Console.WriteLine(version.GetStatistics().ElecDocumentPath);
}

 

0 0

Replies

replied on June 28, 2017

In my experience, new/old versions seem to be kept together on the same volume. Using the code Robert provided is probably the easiest way to track it down using a simple workflow.

The dbo.vhist_toc table in the database does not have a column for volume like there is in the dbo.toc table, and I assume that is because Laserfiche is designed to keep all entry versions together.

That table does have an edoc_storeid, which when converted to hexadecimal will give you the file name of the document so you could track it down, but that's much more tedious than Robert's solution.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.