Get list item versions computed data with CSOM


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.

Posted on

Tags: SharePoint Online Versions, List Item Versions, CSOM CSharp ListItem Versions

Comments