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

Question

Question

Revert files to previous version using Workflow or SDK

asked on October 24, 2018 Show version history

Hello, 

Although I'm nearly positive there is not a Workflow activity to manipulate version history (please correct me if I'm wrong), can anyone give me a hint of where to look in the SDK -- or even sample code -- that would enable this functionality? We potentially need to revert lots of documents to a previous version, and would prefer to not need to do this manually.

Thanks,

Jesse

0 0

Replies

replied on October 24, 2018

DocumentInfo has a GetVersionHistory method that returns a collection of DocumentVersion objects. You can then use the Version property of DocumentVersion to feed the DocumentInfo.Revert method.

If that doesn't get you far enough down the road, post back here, and I can come up with a sample.

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

Sign in to reply to this post.