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

Question

Question

SDK - Versions - Anyway to target just the change 'Pages'

asked on October 31, 2019

Hi guys,

I'm working on a script to delete all the versions that were created JUST for the change 'Pages' 

I have it working targetting date and user but unfortunately there are not comments against these. Usually I would expect the comments to say something like "Pages generated". 

I was wondering if there was a function or something along the lines of version.change , I noticed there is something pointing towards changereport but I can't seem to pass any parameters into this. 

0 0

Replies

replied on October 31, 2019

Assuming you are using the RepositoryAccess library, the DocumentInfo object has a GetVersionDifferences method which returns a DocumentDifferenceReport with the parts of the document that changed between the two specified versions.

0 0
replied on October 31, 2019

My complication comes from that I've used an external library to generate pages, the issue is that Laserfiche recognises each of these pages as a new version so it's more like a batch target I'm looking for.

I use DocumentVersion to grab the 

 

version.CreateDate 

version.Creator 

 

I was hoping there would be something like version.Change, I was hoping that version.ChangeReport can be used to report back "Pages" but I can't seem to grab anything from this? Looks like it works similair to GetVersionDifferences so I can take a look. 

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

Sign in to reply to this post.