Hi, I need to fetch file owner of list. Below is my code.
clientContext.Load(list, l => l.Id, l => l.Title, l => l.BaseType, l => l.BaseTemplate, l => l.LastItemModifiedDate, l => l.Created,
l => l.DefaultViewUrl, l => l.Author.UserPrincipalName, l => l.Author.Title, l => l.ParentWebUrl, l => l.ParentWeb);
clientContext.ExecuteQueryWithIncrementalRetry();
Above code giving error stating "Field or property "Author" does not exist."
Able to fetch author property when targeting SP Online via CSOM. Also able to fetch when targeting SP OnPrem via SSOM.
But when doing it via CSOM - SP 2019 OnPrem, it is throwing error.