Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to get current unpublished version of a page programmatically?

$
0
0

Hi all,

I have to save the current version of a page in other library(history) when that page is unpublished. 

Suppose if i have 3 versions..3.0,2.0,1.0

when i unpublish 3.0

Now the versions will be

2.1(draft)

2.0

1.0

i have to get either 3.0(unpublished version) or 2.1 ( draft of 3.0 version) and save in other history library.

I have used ItemUpdating event, when a page is unpublished it fires the ItemUpdating event but i am unable to get the unpublished version.

How can i achieve this one? Please guide me.

Thanks in advance



san




Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>