Velin Georgiev Blog

Get list item versions computed data with CSOM

22 Jul 2015
Tags: SharePoint Online Versions, List Item Versions, CSOM CSharp ListItem Versions
It will pull data only for computed the following fields:
CheckInComment,Created,CreatedBy,ID,IsCurrentVersion,Length,Size,Url,VersionLabel


var id = new Guid(item["UniqueId"].ToString());
var file1 = clientContext.Web.GetFileById(id);
clientContext.Load(file1);
clientContext.Load(file1.Versions);
clientContext.ExecuteQuery();

var versions = file1.Versions;


For advanced custom fields data you should use Lists.asmx service. See PnP for more info.

Comments (0):

There are no comments yet! Be the first to comment this. We value your feedback!

Add comment