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

Question

Question

Is it possible to Update Version Comments using workflow?

asked on February 8, 2022 Show version history

I have a client who wants to get the unique Version updated by them using comments(running a business process).

The Laserfiche generates many version and it becomes impossible to find the version the user edited.

The client also requested if they could highlight the version/version comments with different color/style/font?

 

ANy Suggestions please?

0 0

Replies

replied on February 13, 2022

Can you provide a sample screenshot of what does it looks like currently for the version comments?

0 0
replied on February 15, 2022

It doesn't show anything. Just the Version number and changes. The comments is not there.

This is the code i use to write version comments as well as update field value.

Only 1 of them works, either the metadata field gets updated or the version comments. I want both to work.

0 0
replied on February 16, 2022

To set the version comment, the document needs to be checked out for version control editing, like this:

try
{
    EI.Lock(LockType.Exclusive);
    EI.SetFieldValues(FVC);
    EI.Comment = "Release Version - " + Convert.ToInt32(Version);
    EI.Save();
}
finally
{
    // Do this in a finally block to make sure the document is checked back in even if an exception is thrown
    if (EI.IsCheckedOut)
        EI.CheckIn();

    EI.Unlock();
}

To update version comments for existing versions, update them like this:

foreach (var version in doc.GetVersionHistory())
{
    version.Comment = "my new comment";
    version.Save();
}

 

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

Sign in to reply to this post.