Usage -
var currentItem = ListEnumerator.get_current();
var _contentType = currentItem.get_contentType();
if(_contentType.get_name() != “Folder”)
{
var File = currentItem.get_File();
if(File != null) {
FileVersionCollection versions = File.Versions
foeeach(FileVersion _version in versions)
{
//something
}
}
Ads by Google
This does not work
ReplyDeleteFileVersionCollection object returns "undefined" or null.... even though my documents have multiple published versions.
Any idea?